programmatically unset a default application

Posted by dystroy on Stack Overflow See other posts from Stack Overflow or by dystroy
Published on 2010-05-13T15:52:12Z Indexed on 2010/05/13 15:54 UTC
Read the original article Hit count: 266

Filed under:

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 is I don't want my program to be launched again the next time the user click the Home button.

I know that this can be done by going in the parameters / Applications / my app / erase default actions but I would like to do it from my program so that the user doesn't have to search this function.

How can it be done ?

© Stack Overflow or respective owner

Related posts about android