Android - Preserve or delete files created by the application on uninstall

后端 未结 6 1917
别跟我提以往
别跟我提以往 2020-11-29 05:52

I created an application which creates and stores files to sdcard. Is there a way to bind the folder with application in order to delete all files when the user runs uninsta

6条回答
  •  一生所求
    2020-11-29 06:43

    if you want to store large data then store it in external storage with file path name such as

    Environment.getExternalStorageDirectory().toString()+"/Android/data/packageName"
    

    where package name is your app package name eg com.think.abc

提交回复
热议问题