My application crashes after idling for a long time in the background. I debugged and found the reason that it is crashing is due to a NullPointerException. Exc
NullPointerException
The Activity is no longer visible thats why it going to onStop() instead of onResume()