Keep files after uninstallation of android app

前端 未结 1 513
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 16:23

I want to use a file to store purchased data. Since the app is going to be free and a certain amount of credits are given at the installation. What happens now is that if I

1条回答
  •  囚心锁ツ
    2020-12-11 17:24

    You can put files in a directory derived from Environment.getExternalStorageDirectory(). These files will persist after an uninstall. However, a user can delete those files any time they like, regardless of whether your app is installed or not.

    Other than that, there is no place on the device that you can place files that will survive an uninstall.

    0 讨论(0)
提交回复
热议问题