java - Android Studio Apache functions -


i've been trying create defaulthttpclient object with:

httpclient client = new defaulthttpclient(); 

but i'm unable find class can't resolved in android studio. after googling class, first result shows following url:link

and it's 404: not found page.

does know how can use function , similar function such httpget?

use urlconnection. if remember correctly, defaulthttpclient deprecated.

url url = new url("http://stackoverflow.com"); urlconnection conn = url.openconnection(); inputstream in = new bufferedinputstream(conn.getinputstream()); 

Comments

Popular posts from this blog

javascript - Can Piwik report referrer in real time? -

asp.net - Google Drive Access: At least one client secrets (Installed or Web) should be set -

excel vba add hyperlink to shape in group -