4

In my android Application,I have an issue in which if I open app from background after some time (30 or 40 min) , that time my app got restart can any one have suggestion on it.

I have gone through almost question before asking this one,but can't find any suggestion or help.

Thanks in advance, any suggestion will be helpful.

Shailesh Bandil
  • 497
  • 7
  • 20
  • This is perfectly normal. [Your process will not live forever](https://developer.android.com/guide/components/processes-and-threads.html). Beyond that, Stack Overflow is for programming questions -- what is your question? – CommonsWare Jul 24 '17 at 13:18
  • Hello,@CommonsWare my question is why its restart in just 30 - 40 mins ?why not for long time. can you please explain this. – Shailesh Bandil Jul 24 '17 at 13:25
  • 4
    This is covered in [the documentation](https://developer.android.com/guide/components/processes-and-threads.html). Your process can be terminated **at any time** once it moves into the background, to free up system RAM for other apps and their processes, as Android devices do not have infinite amounts of RAM. – CommonsWare Jul 24 '17 at 13:29
  • Thanks for the explanation. – Shailesh Bandil Jul 24 '17 at 13:42

0 Answers0