[Android] Can't you make it possible for the bar's status to be saved even if the app is turned off and on?crying

Asked 2 years ago, Updated 2 years ago, 22 views

I want to save the progress bar when the user presses the progress button...crying For now, if I turn off the app and turn it on, or if I go to another activity, The progressed program bar becomes the default. Is there a way to fix this?crying If you know any related examples or methods, please let me know!!TT

android

2022-09-21 17:05

1 Answers

The way to save it internally, You can save it in Shared Preferences or db and retrieve the data you saved when you draw the program bar.

If you want to use it to store simple variables, you can use Shared Preferences, otherwise use db.


2022-09-21 17:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.