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
Try to avoid using static variables in your application which are causing these kind of issues. Try to save your data in Shared Preferences and use it.