Android: saving information for a trial application

I want to save some information about the trial version of the application.

I want this information to be permanent in order to determine if the user has uninstalled the application and installed it again after the expiration date.

what is the best place to store such information

thank

+3
source share
3 answers

In most cases, the solution to this problem is to check on the server side,

But if you do not want to attract a server, it is better to use limited functionality in your trail application and completely in the paid version.

, Time Trial, , ,

+4

.

, .

- .

+1

"" ( ):

. , (), "" :

  • Use the general settings / database / file stored on the internal memory containing the installation timestamp.
  • If the device has an external memory card (most devices), also save the time stamp on the SD card.

The only way to use your application after the expiration date is that user 1. deletes the application data on the phone and 2. finds the timestamp file on the SD card, and also kills it.

If he β€œjust kills” the first or second check, the killed one can be restored the next time the application starts.

+1
source

Source: https://habr.com/ru/post/1793562/


All Articles