I have devoleped an application and the problem with that application is that Its crashing when we keep it in background for more than 15 mins
On clicking application Icon It should come to foreground but its showing application stopped/ANR message.
So what exactly I have to do so that It will not crash
I think I should concentrate on life cycle methodologies.
Please suggest me a solution for this
Help is always appreciated,
Thanks in advance.
Logs might not help, when it’s an ANR error you are getting. Try instead to pause the application execution (Go to the debug tab, click then pause button and start inspecting the threads) and see what’s going on. Most likely you have an infinite loop or deadlock somewhere that is keeping your application from responding.