Implicit intent to uninstall application?

前端 未结 3 1428
自闭症患者
自闭症患者 2020-12-02 11:25

I am trying to have an onclicklistener call an intent to uninstall an app, by having the intent call the default \"uninstall app\" activity from the applications settings. I

3条回答
  •  旧时难觅i
    2020-12-02 12:23

    In the Api Demos it looks like they are giving the full path to the activty, not just the package itself. This seems weird, because helloactivity activity is not declared in the manifest of that project. So maybe it is just the package path...

    However, set the extra EXTRA_RETURN_RESULT to true in your intent, then start the activity for result and check the result code, maybe it will return a code/extra field in the data intent saying what is the error (Read in the documentation for that)

提交回复
热议问题