Intent action : ACTION_DELETE , App crashes after I hit cancel second time
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));
i am also facing same issue but i change package. we can use uninstall_apps package https://pub.dev/packages/uninstall_apps
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.
Same problem. Any updates on this ?