I'm trying to create a setup activity for my Android application which my users would see the first time they opened the app, but never again unless they wanted to redo the setup. How do I create this setup activity as the first activity without giving it MAIN/LAUNCHER intent-filters? (I want to use those for my home activity.)
If the onCreate method of an Activity launches another activity, it appears as though the first activity doesn't show.
So, make your real first activity the main/launcher activity.
In the onCreate method of that first activity have a check for whatever setup config should be present.
If the setup is not configured, start up the Setup activity.
Otherwise, the first activity will show.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With