Once my Home Screen app 'X' is installed on the device & when the user presses the Home Button, he is prompted with the Default Action Android dialog to choose between the Default Home & my X app.
My use case is to keep on prompting the user - a bit infrequently though, with this Default Action dialog till he selects my App as default.
- I can do the prompting with a ACTION_MAIN intent.
- Issue is when should i stop the prompting ?
How would i know that my X app is the default now ?
Let's say you have an application X, with the following declaration in its manifest
To check whether or not this application is the "default option" (in this examepl for anything) you simply: