Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Create a class that extends Application and override the required methods (onCreate, onTerminate). Specify the full path to your class in AndroidManifest.xml instead of the application tag (for example, com.test.yaska.MyApplication).
The onCreate method of the activity. At startup, it is called, you can check the list of goods. Each time the activity is destroyed, the on Destroy method is called. However, this is not guaranteed. Therefore, it is worth checking the list of products when starting the application and the presence of old settings. If they are, reset them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question