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.
我想做的是,如果用户尝试从图库中删除文件,系统会询问他是否要使用我的应用程序删除它。我正在查看当用户尝试从图库中删除文件时是否可以捕获意图调用。任何帮助,将不胜感激 :)
我不认为有这样的意图。 但是为了检查是否有,请在删除文件时检查logcat。所有意图在启动时都会显示在 logcat 中。我建议你在 logcat 的搜索行(在顶部)中写下“intent”并检查一下。
祝你好运!