Store permanently an information

31 Views Asked by At

fisrt sorry for my english...

How is it possible to know if an user has installed the application for the first time ? I explain my need : when the user install my application, he has for example 10 credits for free. But after, if he needs more credits he has to paid... My problem is that if he deletes the application and he install again, he has 10 credits for free... How to store the number of credits permanently ?

I already try to use sharepreference, but data are deleted if I clear the application

thank you

gigi

1

There are 1 best solutions below

7
Dave On

you can use sessions and cookies and write than , if cookie close, delete credit card or another logic.