i am using application context for saving data, and it work fine for me ,but the problem comes,when i press home button and take some other application and return to my application after a long time my app fail, no data in application context, how can i save the application context
Share
This question should help you. You could store the application context in shared preferences. When resuming an activity, first test if application context is empty and if it is, then load data from shared preferences.