Do Something on First App Start Only – Android Studio Tutorial
In this video we will use shared preferenes to execute a piece of code (an AlertDialog in this example) only the very first time we start our app after installation. For this we will use the SharedPreferences Editor to save a boolean, which checks, if it is the first application start or if we have started it before. If we delete and re-install our app, it will be shown once again for one time.
Source code:
https://gist.github.com/codinginflow/163291470fc1b7a2a23f3d73097cc679
____________________
💻 Find the BEST programming tutorials on TutHub:
https://tuthub.io
⭐ Get my MVVM Caching Course now:
https://codinginflow.com/caching
❗ Subscribe to the channel:
https://www.youtube.com/c/codinginflo…
📨 Subscribe to the Coding in Flow newsletter:
https://codinginflow.com/newsletter
❓ Join our free developer community:
https://discord.gg/TSnMvmc
📣 Follow Coding in Flow on other sites:
Facebook: https://www.facebook.com/codinginflow
Instagram: https://www.instagram.com/codinginflow
TikTok: https://www.tiktok.com/@codinginflow
Twitter: https://twitter.com/codinginflow
Github: https://github.com/codinginflow
💰 Business requests, sponsoring, etc.: info@codinginflow.com
Views :32368
android studio