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
Post a Comment