I am writing a program by which once an application is installed in one phone model than the IMEI number is validated and then and then it will allow to install an application. I have used RSA algorithm for the security purpose and validation is checked via sms medium.
now let me explain,where I am stuck! Initially flag is setted to 0, then further some validation..flag=1 and finally...it is setted to 2. This checking is only done once but each time when application is opened,it will check for IMEI number. Now the problem is, I initialize flag by 0 and next time when I open application, every time it must be 2 which is finally setted.
How can I achieve that?? (HOPE I HAVE EXPLAINED CLEARLY)