Android Keep Activity In Background
I have a multiple activity app - MainActivity, CpuActivity, etc. My CpuActivity has fragments that have savedInstanceState. Whenever I press back or navigate up to the MainActivity
Solution 1:
A simple solution is to store the data in your application instance. To do that you have to specify an Application implementation in the manifest (the android:name attribute in the application tag). You can get the application using the getApplication() method.
Post a Comment for "Android Keep Activity In Background"