Don't set the class name. Just build an intent with Intent.ACTION_MAIN and Intent.CATEGORY_HOME and flag Intent.FLAG_NEW_TASK, and start that.
On Wed, Apr 22, 2009 at 3:28 AM, Rahul <regh...@gmail.com> wrote: > > Hello, > > This is the way i tried > > Intent setIntent = new Intent(); > setIntent.setClassName("come.home.page", > "come.home.page.ViewHome"); > setIntent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT); > startActivity(setIntent); > > I also set MAIN action and HOME category in Manifest. > > But is not working.I am not getting home screen. > Can you tell me where i went wrong. > > Thank You. > > > > > > On Apr 22, 1:38 pm, Dianne Hackborn <hack...@android.com> wrote: > > Just use startActivity with MAIN action and HOME category and NEW_INTENT > > flag. > > > > On Wed, Apr 22, 2009 at 1:06 AM, Rahul <regh...@gmail.com> wrote: > > > > > hi, > > > > > Is it possible to show home screen of android using some API or > > > Manifest file > > > > > Thank You. > > > > -- > > Dianne Hackborn > > Android framework engineer > > hack...@android.com > > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see > and > > answer them. > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---