In my app there are 2 activities : 1st MainActivity (Home Activity ) and 2nd GameActivity (There is editext in MainActivity which allows user to enter KEY to open GameActivity).
I provide user a unique KEY free for the first time , with the help of it , user can open GameActivity for the first time . Second time user has to buy another KEY to open GameActivity (That means to open GameActivity , every time user needs a different KEY ). If user uninstalls my app , I want to save that key (Free KEY provided by me earlier ) in the internal storage .
So that if the user installs my app again , it will be checked if there is a KEY in internal storage of the device , if yes then it will be notified to the user that you have already used this KEY before so buy another KEY . If no , then it's OK.
If you didn't get something please ask me . Please HELP me . Request