vishnu vigneshwar vishnu vigneshwar - 28 days ago 16
Android Question

Android code for Fastest Way to retrieve data from web server to android! Native method or 3rd party library?

I am using an

AsyncTask
to download a JSON string from webserver.

While debugging the code I realized that the time taken to transfer control from the function call in background is taking too much time.

public class Downlog extends AsyncTask<String, String, String>{
// ...
}


After entering in background the data downloaded a little faster.

I want to know how to download the data fast

Answer

Definetely Third party library (if you don't want reinvent the wheel :) )