how to clear my SharedPreferences when my app is killed through task manager?
I was able to clear my SharedPreferences if user double press back button
to exit the app but how do I manage to clear my SharedPreferences if my
app is killed by task manager? I don't want to put it on the onStop()
method, because my SharedPreferences is cleared when I switch between 2
activities.
No comments:
Post a Comment