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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -