Jetpack Compose: Best way to display a start screen only the first time you start the app
Im currently working on an app that has a start screen where I want to input an unique code to add a device through firebase. After adding the first device the menu screen should appear after starting the app.
I currently do that with two Activitys and a Shared Preference that checks if I have at least one device and redirects me from the StartActivity to the MenuActivity.
Although that works fine, I dont think it is a good solution. Is there any other way to have a Start Screen that only...