Search code examples
androiduser-preferences

re-prompt to choose default activity


is there a way to reprompt the user to choose a default activity for an intent? For example, user selects his default home apk and I want him to reconsider his choice once again.

I know how to do that on 2.1 and before, but is there a way to do that now on 2.2?

Famous Home Switcher, which did similar thing, does not work on 2.2 anymore thanks to google team


Solution

  • For example, user selects his default home apk and I want him to reconsider his choice once again.

    That is no longer possible, unless your app is the preferred one. Then, I think you can use clearPackagePreferredActivities() to remove yourself as the preferred choice.

    In other words, you are welcome to affect your own app, but you are not welcome to affect other apps.