Well, that was simple :) Thanks all. I knew System.exit() was what I
was looking for.

On Feb 27, 3:27 am, "deepdr...@googlemail.com"
<deepdr...@googlemail.com> wrote:
> you should just remove it from the Java implementation :-)
>
> On 27 Feb., 04:40, Dianne Hackborn <hack...@android.com> wrote:
>
> > And for heaven's sake don't call System.exit()!
>
> > On Thu, Feb 26, 2009 at 10:50 AM, Marco Nelissen <marc...@android.com>wrote:
>
> > > On Thu, Feb 26, 2009 at 5:26 AM, Zack <zhalbre...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > I'm trying to do something similar. I have a few activities in my app.
> > > > When the app starts it goes from
>
> > > > EULA -> Loading Screen -> Main Activity
>
> > > > If I get to the Main Activity and hit the back button it will go back
> > > > to the Loading Screen (which I understand) but now I'm trapping the
> > > > onKeyDown for the back button in my Main Activity and would like to
> > > > get to the home screen through startActivity()
>
> > > > System.exit(1) as suggested below seems to just restart my Main
> > > > Activity. Any suggestions? Thanks!
>
> > > You can just have your loading screen and EULA activities call
> > > finish() on themselves when they are done. That way your 'main'
> > > activity becomes the first activity in the chain, and exiting it will
> > > exit your app.
>
> > --
> > 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.  All such questions should be posted on public
> > forums, where I and others can see and answer them.- Zitierten Text 
> > ausblenden -
>
> > - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to