The Matrix
The Matrix

Reputation: 1348

Intent to Open default desktop screen in default launcher

I know the Intent to open the default launcher in Android but I need to start launcher and open the default desktop page. Is this possible? Thanks in advance.

Upvotes: 1

Views: 237

Answers (1)

adneal
adneal

Reputation: 30814

No, it isn't possible to request a particular homescreen using the stock Android launcher.

The launcher defines the default screen using:

static final int DEFAULT_SCREEN = 2

And the only way to change it is by calling:

static void setScreen(int screen) {
        synchronized (sLock) {
            sScreen = screen;
        }
    }

But none of these are publically available to a third party developer and the app doesn't look for an Intent extra or anything that might indicate which screen you'd like to display.

Upvotes: 1

Related Questions