Hi, I'm trying to do something similar. My app has 3 activities
EULA (checks preference for accepted, so must of the time is not seen) -> Loading Data -> Main Activity If I get to the Main Activity and hit the back button, it goes back to the loading screen. Now, I'm catching onKeyDown, looking for the back button code and if I find it would like to use startActivity to launch the Home Screen. System.exit(1) performs the same thing as the back button. Anyone know what class / package I can use in an Intent to launch the home screen? On Feb 25, 12:39 am, suhas gavas <suhas.ga...@gmail.com> wrote: > hi > onclick just write System.exit(1); and it will do the rest for u > > reagrds, > Suhas > > On Wed, Feb 25, 2009 at 11:07 AM, <ipeg.stud...@gmail.com> wrote: > > > Hello > > > Thanks for the reply. But my question is i have a > > exit button. I want to go to the home screen by clicking the button. I > > know the onClick() method. Please tell me the method by which i can go > > to the home page of android. > > > //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// > > > btn4=(Button)findViewById(R.id.bt4); > > btn4.setOnClickListener(new ImageButton.OnClickListener() { > > public void onClick(View v) { > > > ???????? > > > } > > }); > > > i dont want finish() method. > > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---