In my android application ,user has to register by agreeing the terms and condition giving their email id. If user upgrade the application to next version, I should not get the agreement page or email registration window. I am controlling it using global variables but if user upgrade application to newer version, global variables get reset, so user get the agreement page and registration window again. So how can I do this? Thanks for help in advance.
In my android application ,user has to register by agreeing the terms and condition
Share
You Have two ways to storing your data @ local media.
Shared PreferenceSQLite DatabaseWhen i should use Shared Preference ?
If your number of storing variable are not more and it should be primitive values then you can use
Shared Preference.See This for sample code .
Or
When i should use SQLite Database ?
If you have to store number of variable and which are not primitive and also you need that data for long time then you should use
SQLite Database.See This for sample code .
Now its
Depends on you as per your requirement.