Get intent of uninstall app in android -
i want know intent of uninstall app because of
in app when user opens first screen device id saved in server side using php.
when user uninstall app automatically device deleted in server side.
for prepared code php delete device id. when call webservive.
i tried below code
public class myreceiver extends broadcastreceiver { @override public void onreceive(context context, intent intent) { string action = intent.getaction(); if("android.intent.action.package_removed".equals(action)){ // here wrote code of delete device id in server side }
but not working because intent not raised. please tell me intent raise when user uninstall app or tell me suggestions solve problem.
thanks in advance.
regards
you cannot uninstall intent own app. see thread more - get application uninstall event in android
Comments
Post a Comment