简体   繁体   English

从应用程序上的图库中删除图像文件夹,以编程方式卸载Android

[英]Delete Image Folder from Gallery on App Uninstall Android Programatically

我想在用户卸载App时从图像库中删除由App创建的图像文件夹。有人知道如何以编程方式执行此操作吗?

There is no way to detect that your OWN app is being uninstalled. 无法检测到您的OWN应用程序已被卸载。 It's a security issue. 这是一个安全问题。 But other applications can. 但是其他应用程序可以。 Receiving package install and uninstall events 接收软件包安装和卸载事件

Perhaps it's possible to create a separate application, that can listen to that event and remove the folder and then uninstall itself Implicit intent to uninstall application? 也许可以创建一个单独的应用程序,该应用程序可以侦听该事件并删除文件夹,然后自行卸载隐式意图卸载应用程序?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM