A
A
Artix2014-12-06 18:12:37
Android
Artix, 2014-12-06 18:12:37

Reset app preferences after deleting from memory?

Hi all!
There is an application that has settings with its own data, they are updated with the onStop() and onPause() methods, and in principle everything is fine, i.e. after closing (leaving the desktop) and exiting the device’s memory, then all the settings remain unchanged, but I noticed a bug, if you don’t go to the desktop and remove this application from memory, then the settings of one activity are reset, the rest remain unchanged. How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maaGames, 2014-12-06
@maaGames

OnStop may not be called. If it was called for some Activities, but not for others, then there may be a different result. Perhaps all resets / saves need to be done only in OnPause.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question