Skip to content Skip to sidebar Skip to footer

Android: Process Has Died - Low Resources?

I've a little problem with a simple HTTP GET request that I've written and which will request a URL every X minutes. I had it once or twice a day that the process stopped in the mi

Solution 1:

If I understood you correctly you are asking two things:

  • Q1: Why doesn't the specified timeout work?
  • Q2. Why did the process die?

Starting with Q2, my guess is that your process is killed because the timeout didn't work and your code took too long to run. As a result Android killed it.

As for Q1: I did some experimenting and noticed that in the emulator the timeouts didn't work in my app as well. Testing with the emulator API7 and API8 I always get an UnknownHostException after about 20 seconds, regardless of any set timeout. This goes for the DefaultHttpClient as well as the HttpUrlConnection and AndroidHttpClient.

Googling revealed that other people have also reported problems with timeout:

None of the proposed solutions worked for me, so I guess the only reliable solution is to manage timeouts yourself.

Post a Comment for "Android: Process Has Died - Low Resources?"