Tagged Questions
0
votes
3answers
35 views
Timeout in DefaultHttpClient
I'm a little confused on how the timeouts in DefaultHttpClient work.
I'm using this code:
private DefaultHttpClient createHttpClient() {
HttpParams my_httpParams = new BasicHttpParams();
...
-1
votes
1answer
37 views
Keep screen on from a service
I would like to know how to keep the screen permanently on from a service. Here is the scenario for the code:
User plugs phone into power outlet,
Broadcast receiver gets event, start a service that ...
0
votes
3answers
32 views
Android error : Failed to install : timeout [duplicate]
Failed to install TempDate.apk on device 'emulator-5554': timeout
Got this error while run my android project. solved by this link Android error: Failed to install *.apk on device *: timeout
I go ...
0
votes
1answer
68 views
Android -Json httpRequest Time out Connection
How to make a Connection Timeout, when I do a httpRequest? I return to the previous activity? For my apilcacion is blocked by a firewall, and I can make some time to not be able to connect to the ...
0
votes
0answers
39 views
Handling an active but “dead” Internet connection
I have an app that force-closes when there is a "dead" Internet connection. When I say dead, I mean one which is available, but in which data transfer doesn't happen (or so it seems). In this case, ...
1
vote
2answers
46 views
No IOException on Outputstream when dataconnection lost
I'm developing this android application which basically uploads images to a webservice.
I have a asynctask where I send the file to the server, using this code:
protected Boolean ...
1
vote
2answers
48 views
HTTPResonse Time Out
I have a scenario in which i am sending requesting using Device WiFi. In this scenario WiFi is connected but WiFi further is not connected to internet and in this case i send HTTP request but the ...
0
votes
1answer
108 views
httpclient sleeps while executing
I am developing long running application, my application uses DefaultHttpClient (I also tried with AndroidHttpClient) periodically. I don't know but after working a while, somehow httpClient.execute ...
0
votes
1answer
97 views
android using url.openstream isn't throwing IOException if no internet connection. Why?
I am using url.openstream for requesting on to server. In case no internet connection while this, I want data to be stored in database, and hence doing the storage in catch clause of IOException, but ...
0
votes
2answers
90 views
Can setConnectionTimeout stop a download from completing
I am downloading a file in my app and using the following time-outs.
HttpParams httpParameters = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParameters, 5000);
...
1
vote
2answers
698 views
Android: AsyncTask timeout
I have a question, how is possible to do splash screen where will execute HTTP request and if this request executing too long,i.e. 7-10 seconds then abort request and jump to main activity?
Below ...
0
votes
1answer
231 views
Android Connection/SocketTimeOutException caught yet app still crash
Basically I'm trying to let user know when the app cannot reach the server/server down, while their phone internet/data connection is perfectly fine. So I set a timeout by following this post here: ...
0
votes
0answers
32 views
timeouit from http post not working
The following code has been working for some time and always has responded quickly - always way ahead of my 4 second timeout. Today, for some reason I'm not getting a response from the Post (it did ...
0
votes
0answers
130 views
Need android device setting screen off timeout listener
I need / want to add device setting screen off timeout listener to update my switch with latest time which user select in setting preferences of the device.
Code i tried:
...
0
votes
0answers
56 views
Http connection sits and waits for data to download after certain amount of idle time
I have had this issue and sort of found a workaround after doing a weeklong research. Thought to share just in case someone else encounters it.
The issue happens on devices (as I've tested) with ...