It is if the user makes your app the default homescreen. Then when the home button is pressed your app will be displayed. However this is not a good solution for whatever he is trying to do.
On Mon, Aug 15, 2011 at 6:32 PM, Mark Ayers <[email protected]> wrote: > To add another Mark to this conversation, I think he's asking for a way to > make something happen when the home button is pressed. I don't believe this > is possible. > > > On Mon, Aug 15, 2011 at 4:13 AM, Mark Murphy <[email protected]>wrote: > >> On Mon, Aug 15, 2011 at 5:13 AM, mark2011 <[email protected]> >> wrote: >> > I want to set the back & home function in my API. >> >> That sentence is unclear. >> >> > I use finish or system.exit(0) to return my last page. >> >> Do not use System.exit(0) in any production-grade Android application. >> >> > How do I go back to my home page? >> >> Call startActivity() with an Intent identifying your home page, >> perhaps with appropriate flags to control the stack (e.g., >> FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP). >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com | http://github.com/commonsguy >> http://commonsware.com/blog | http://twitter.com/commonsguy >> >> Android App Developer Books: http://commonsware.com/books >> >> -- >> 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 >> > > -- > 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 > -- -------------------- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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

