Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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: ...
Castiel's user avatar
  • 33
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 ...
Lakshan Sivananthan's user avatar
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: ...
Kota1921's user avatar
  • 133
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 ...
Parama Sudha's user avatar
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 ...
Santiago Aceñolaza's user avatar
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 ...
user avatar
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 ...
somenath mukhopadhyay's user avatar
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? ...
Code_Life's user avatar
  • 151
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 ...
PPD's user avatar
  • 151