Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 在 android 中执行卸载任务
我的 android 应用程序安装在设备上时会在 sd 卡上创建一些文件夹。现在如果用户卸载应用程序,我想清理创建时创建的这些文件夹......那么是否可以在 android OS 中实现它?
当您的应用程序从设备上卸载时,您无法管理这些事情。仍然如果您想删除您的文件夹,有一种方法(不推荐),您可以创建另一个应用程序来监视您的应用程序,因此当您的应用程序被卸载时,该应用程序将删除您的应用程序创建的文件夹。但这不是实现这一目标的方法。不幸的是,在卸载应用程序时没有其他方法可以处理事情。