This is the intent that's launched when you press the home key:

        mHomeIntent =  new Intent(Intent.ACTION_MAIN, null);
        mHomeIntent.addCategory(Intent.CATEGORY_HOME);
        mHomeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
                | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);

-joe




On Jun 15, 11:07 am, Mark Murphy <[email protected]> wrote:
> On Tue, Jun 15, 2010 at 10:42 AM, guich <[email protected]> wrote:
> > Thanks, but something went wrong.
> > I can see the onPause and onResume being called for my app, but the
> > screen is blank after the resume. This does not happen when i press
> > the home key.
>
> Hmmm...the docs say that should have worked. Do a bit of searching --
> I am sure the question of how to open the home screen has come up
> before.
>
> --
> Mark Murphy
> CommonsWare
> [email protected]http://commonsware.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to