If you uninstall app, file /mnt/sdcard/.secreto/.myfile.txt (with first time installation) remains.
In this example, time_life app is only 3 minutes (180000 milliseconds).
Juan Antonio Villalpando.
Al instalar la aplicación se crea el archivo /mnt/sdcard/.secreto/.myfile.txt con el instante actual, por ejemplo 15768776984734. Ese número y archivo permanecerá siempre hasta que el usuario sepa donde está y lo quiera borrar.
Además la aplicaciĂłn tiene una variable con su tiempo de vida (time_life_ms), he puesto solamente 3 minutos, 180.000 milisegundos para hacer las pruebas, lo normal serĂa poner 15 dĂas o un mes (expresados en milisegundos).
Al cabo de ese tiempo cuando intentemos iniciar la aplicación nos indicará que ha superado su tiempo de uso.
En fin, lo puedes ver con más detalle en mis tutoriales…
Why not use the extension below , get installation date, calc the difference with today’s date in days and if the result is above lets say 30 days (or any other limit you want to set as the free trial period) to notify the user that the app expired and then close …
With the same logic you can also make the app ad free for some period and after that period ends start displaying them…
Then… make the user somehow not willing to uninstall the app or clear data. For example if there is no possibility to export data and re-import them after the new installation then user will not be able to have the app as if never uninstalled…
Also there are several file browsers (for example total commander) that are capable of showing hidden files and folders and there you have the ability to modify the file or even delete it…
The only other thing that I can think is to have an expiration date as part of the blocks and make an app valid until that specific date, but this has also a limitation… as mentioned in the link by @Andres_Cotes ( I read the post after typing my thoughts… )
For me the best option is to limit functionality in trial version of any app and give full access in a paid version…
@Juan_Antonio remember to follow the naming conventions, which is UpperCamelCase for property, method and event names (i.e. the first letter should be a capital letter) and lowerCamelCase for parameter names
I looked at this, but please tell me that the reading of the photo I have sent, according to the reading, is getting this reference Sorry, no one Base Station was found! .
Why is this