intent icon indicating copy to clipboard operation
intent copied to clipboard

Intent action : ACTION_DELETE , App crashes after I hit cancel second time

Open amitjain231 opened this issue 5 years ago • 3 comments

I had implemented package deletion app and intend to use ACTION_DELETE and refreshing the page after deletion of the selected package on my list.

Sequence of steps: 1> Select the package and click on delete (which runs the below intent code), 2> Click Cancel , hit delete again and hit cancel button again.. This time App crashes Attached is the logcat.. Intent_issue_LogCat.txt

Error reported:
java.lang.RuntimeException: Failure delivering result ResultInfo

Code to launch delete package : android_intent.Intent() ..setAction(android_action.Action.ACTION_DELETE) ..setData(Uri.parse("package:${app.packageName}"))
..startActivityForResult().then((data) => print(data));

amitjain231 avatar Jun 15 '20 13:06 amitjain231

i am also facing same issue but i change package. we can use uninstall_apps package https://pub.dev/packages/uninstall_apps

akashkarli avatar Jun 22 '20 06:06 akashkarli

Similar issue for me as well, the app is crashing after clicking on uninstall and showing app icon removal from the home screen.

@akashkarli , Thanks for sharing the package link it worked for me.

YashodharPalkuru avatar Jul 02 '20 19:07 YashodharPalkuru

Same problem. Any updates on this ?

sunilprajapatisa avatar Sep 16 '20 09:09 sunilprajapatisa