All Questions
9 questions
3
votes
1
answer
2k
views
Implementation of an OkHttp singleton for Android
I'm new to Android programming. I am going to make lots of HTTP requests: 500, 1k, 2k, 10k.
I have tried to create a singleton class for OkHttp. I wrote this:
...
1
vote
1
answer
697
views
HttpRequest class using AsyncTask for Android application
I am using the following class to retrieve a http response, which contains data for my Android App. Everything works fine, but there is a performance issue. I get the following warning when requesting ...
2
votes
1
answer
191
views
Android network API request
I often use a similar scheme work with an API project. Can it be made easier, or is there a standard approach?
This class creates an API request:
...
3
votes
1
answer
438
views
AsyncTask method
Even I know that this isn't a good way of writing code, but I need to improve this.
Here I am retrieving data from Server in Json format by Posting some variables in doInbackground. Getting all the ...
10
votes
4
answers
7k
views
Persistent cookie support using Volley and HttpUrlConnection
I need to add support for persistent cookies on an Android app that I'm building for Authentication/Authorization. This app uses Volley for making HTTP requests and its ...
3
votes
2
answers
18k
views
Efficient and fast way to send data from Android to server
I have an app that will be sending images ranging from few KB to ~20MB and I need to write a code that will do that in the fastest and most efficient way. I currently have a code that does this, but I ...
4
votes
2
answers
10k
views
Generic HTTP using Android Asynctask
I have developed a generic HTTP functionality using Android Asynctask and Apache HTTP client. Please review the code and let me know if it is the right way of doing or there are other ways to achieve ...
5
votes
2
answers
4k
views
Decrease Image downloading time with HttpURLConnection
This is piece of code is using to download images. Can somebody tell me how to optimize this code to decrease download time for each image?
...
5
votes
1
answer
5k
views
HTTP Get & Post code with slow performance
I had developed an application in which I hit several URLs and show data on mobile. But the problem is that it requires more time. If I check the same URL on Firebug tool I get a response in 2-3 ...