Answer the question
In order to leave comments, you need to log in
How to store android tokens while debugging?
I'm debugging an android app. The application uses Web service access tokens. If you store tokens in SharedPreferences, then when you restart from the IDE (I use Visual Studio), SharedPreferences is overwritten along with reinstalling the entire application. You can invent crutches, for example, store them in a file on external media, but this is not good in a product. What to do?
Answer the question
In order to leave comments, you need to log in
I would make a condition for debugging and selling. And in debugging, hardcoded tokens, or would redirect to a local proxy if you often reset the state of the emulator
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question