Praga
Praga

Reputation: 86

Set my home screen as default programmatically

Assume that I have multiple home screen installed in my android device. When booting or pressing the HOME key, a dialog is shown to the user to select desired HOME screen and a check box to set this action as default.

I would like to know the code where the "default" home screen would be set when I select the "set this action as default" checkbox and launch the application.

I need this to programatically control the home screen in two different modes.

Regards, Praga

Upvotes: 0

Views: 1047

Answers (1)

FoamyGuy
FoamyGuy

Reputation: 46856

Short answer is you can't for security purposes. (i.e. if I can programmatically set myself as the default home screen, then I can theoretically "lock" the user out of their own device)

If you actually want to implement this you are going to have to build your own version of the OS and install it on your own devices and then you can getting working within your OS, but not for people who have the stock OS builds.

Upvotes: 1

Related Questions