这个问题在这里已经有了答案:Receivingpackageinstallanduninstallevents(5个答案)关闭8年前。我想在UnInstalling应用程序时清理我的应用程序创建的垃圾。使用list文件:-在list文件中添加:创建接收器以捕获BroadCast事件publicclassCleanReceiverextendsBroadcastReceiver{publicvoidonReceive(Contextcontext,Intentintent){CustomToast.showToastMessage(context,"UninstallingApplica