How do I open an activity only once?

How do I open an activity only once?
Answer
Create an android studio project with the above two activities. The idea is to save a boolean variable in the sharedPreferences of the activity, with initial value as true, and the first time the app is run, pass the intent to the signup activity to be run, and set the value of the boolean variable to false.
 

Tìm kiếm

Back
Top