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 -~----------~----~----~----~------~----~------~--~---