http://groups.google.com/group/android-developers/browse_thread/thread/fbd891ee591f738d

Al.
http://andappstore.com/


Zack wrote:
> Was NOT what I was looking for!
>
> On Feb 27, 8:06 am, Zack <zhalbre...@gmail.com> wrote:
>   
>> 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 -
>>>>         
> >
>   


-- 

* Written an Android App? - List it at http://andappstore.com/ *

======
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


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