android - Disclaimer popup after pressing the app icon -
How to keep a disclaimer pop-up (terms and conditions) when the user opens the app for the first time. I mean if he accepts the click then it will not be shown again. Can anyone help me with logic in Android?
You can use a boolean variable inside a shared appendix. By default, it will be wrong, once you click on "OK" you will change it right. Every time a user opens the app, it checks to see what the value is. Unless the app is uninstalled, the value of that boolean will not be removed within the shared priority.
A good example of using shared references.
Comments
Post a Comment