In Android, why are all org.apache.http.* classes deprecated in API 22 (and what should I use as replacements)? -


i use threadsafeclientconnmanager in app, , bunch of other classes httpstatus, sslsocketfactory, plainsocketfactory, schemeregistry, etc. of api 22 thery're being marked deprecated, , don't see clear indication replaced them. documentation jas says "please use openconnection() instead. please visit this webpage further details", , doesn't make clear do. openconnection() points url class, , webpage link 2011 talks differences between apache classes , httputrlconnection. so, mean we're supposed useign httpurlconnection class on? , if that's case, thought wasn't thread safe (which why using threadsafeclientconnmanager).

could please clarify me?

i asked that half month ago. turns out have use openconnection() instead of old ones.

i think it's bit change code, lollipop on few amount of smartphones, should change can cut ahead of time. got pretty idea here how connection using java.net.urlconnection fire , handle http requests? , try search "httpurlconnection example"

also thread safety this, hope helps

(i tried post comment don't have enough reputation)


Comments

Popular posts from this blog

How can we post XML strings along with text strings in iOS -

How to run C# code using mono without Xamarin in Android? -

c# - cefsharp app remember password option -