Hello

Hello,
I would like to create a trial version for 30 days to ine ANDROID application.
My problem is that the user can uninstall and reinstall my software.
Giving it a new a 30-day trials.
My ini file is destroyed during the deinstallation.
I also try to use SharedPreferences but the same problem has deinstallation.

Someone does know a solution?
-------------------------------------------
Bonjour,
J'aimerais creer une version essai pour 30 jours pour ine application ANDROID.
Mon probleme est que l'usager peut deinstaller et reinstaller mon logiciel.
Ce qui lui donne a nouveau un 30 jours d'essais.
Mon fichier .INI est detruit lors de la deinstallation.
J'ai aussi essaye d'utiliser SharedPreferences mais meme probleme a la deinstallation.

Quelqu'un connais-t-il une solution?
-----------------------------------------------------

Comments

  1. Does it not exist a directory where the INI file would be erased after the deinstallation of the application?
    -----------------------
    Est-ce qu'il n'existerait pas un repertoire ou le fichier INI ne serait pas efface apres la deinstallation de l'application?

    ReplyDelete
  2. It does, there is a folder, separate for each application, that can store files and settings created by the application and is cleared when application is uninstalled. But if your application (your code) create a new folder (the application folder is created automatically by the Android system) it isn't removed and any file that is created from a code isn't removed too. You can use it to have your ini file persisted even when the application is uninstalled.
    In general, Android use a system function to store ini-like data (key-value data), SharedPreferences and it is recommended to securely store application data.

    ReplyDelete

  3. I tried to write a file or create a directory outside the directory where the application is installed but I still have an exception that prevents me from doing ..
    Is that which matters a specific access rights to enable it?
    ----------------
    J'ai essaye d'ecrire un fichier ou de creer un repertoire en dehors du repertoire ou l'application est installe mais j'ai toujours un exception qui m'empeche de le faire..
    Est-ce qu'y a un droit acces specifiques qu'il faut activer?

    ReplyDelete

Post a Comment