0

我使用以下软件包卸载了我的颤振应用程序中的任何应用程序:

android_intent.Intent()
  ..setAction(android_action.Action.ACTION_DELETE)
  ..setData(Uri.parse("package:$packageName"))
  ..startActivityForResult().then((data) {
    print(data);
  }, onError: (e) {
    print(e);
  });

这是原始问题的链接:[Uninstall app in flutter using android intent][1]

[1]: https://stackoverflow.com/questions/55163793/how-to-uninstall-an-app-in-flutter-programatically/62196226?![AndroidManifest.xml图像]( https://i.stack. imgur.com/8L3VY.jpg )

4

0 回答 0