android - App killed event in BroadcastReceiver -
in service, need when running app being killed using command killall com.test.test
. listening events when app being uninstalled, cannot find such event killed processes. exist? current code looks this:
intentfilter packagefilter = new intentfilter(); packagefilter.adddatascheme("package"); packagefilter.addaction(intent.action_package_removed); packagefilter.addaction(intent.action_package_fully_removed); registerreceiver(new broadcastreceiver() { @override public void onreceive(context context, intent intent) { log.d("app", "onreceive"); } }, packagefilter);
Comments
Post a Comment