当我卸载我的应用程序时,我们可以删除通过我的应用程序创建的文件夹吗? [英] When I uninstall my app , Can we remove my folder which is created through my app?

查看:111
本文介绍了当我卸载我的应用程序时,我们可以删除通过我的应用程序创建的文件夹吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临的问题是,当我卸载仍在sdcard路径中可用的应用文件夹时,

I am facing this problem that, when I uninstall my app folder still available in the sdcard path,

我应该怎么删除它?

请提出一些建议使其实现...

please suggest something to make it happen ...

推荐答案

我应该怎么删除它?

What should I do to remove it ?

对外部存储("sdcard")上的文件使用getExternalFilesDir()和/或getExternalCacheDir().卸载您的应用程序后,这些目录将自动删除.

Use getExternalFilesDir() and/or getExternalCacheDir() for your files on external storage ("sdcard"). Those directories are automatically removed when your app is uninstalled.

除此之外,别无他法,因为删除应用程序后您无法控制.

Beyond this, nothing else is possible, as you do not get control when your app is removed.

这篇关于当我卸载我的应用程序时,我们可以删除通过我的应用程序创建的文件夹吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆