programmatically unset a default application

后端 未结 1 1413
忘了有多久
忘了有多久 2021-02-15 18:22

I made a Home application and I\'d like to offer the ability to exit it and unset it as the default application.

Exit is easy (just starting an intent) but the problem

1条回答
  •  深忆病人
    2021-02-15 18:25

    You can use the PackageManager to clear yourself from being the default activity, you cannot clear other activities. This answer may help: How do I use PackageManager.addPreferredActivity()?

    0 讨论(0)
提交回复
热议问题