Use finish(); to kill the current activity...

On Dec 8, 4:11 pm, Jack Ganesh <[email protected]> wrote:
> HI Mark,
> Say some thing ? ? ?
>
> Am in need to perfom this operation.
>
> On Dec 8, 3:40 pm, "Dexter&#39;s Brain" <[email protected]> wrote:
>
> > Hi Mark,
>
> > I am aware that this is the Android convention. But, in some
> > situations, you just want to kill your activity.
>
> > For example, in your browser, if you have been opening many pages, and
> > then you click on "Back", it takes you to the previous page in the
> > browser's history. Say, my history has 10 pages, so to finally exit
> > the application, I have to press back 10 times!!!!..
>
> > One option obviously would be to press the Home button, and this
> > suffices in this case. But, there might be a situation where you just
> > want to close your application completely.
>
> > Is there a way to do this?
>
> > On Dec 8, 3:32 pm, "Mark Murphy" <[email protected]> wrote:
>
> > > >            Through Code i need to kill all Activity. Am into my Sub
> > > > Menu in my Application.
> > > > there if i press exit then i need to come to OEM Screen means Phone
> > > > welcome screen.
> > > > How to do ? ? ?
>
> > > Don't do it. That goes against Android conventions.
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com
> > > Android App Developer Books:http://commonsware.com/books.html-Hide quoted 
> > > text -
>
> > - Show quoted text -
>
>

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