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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -