You can capture the back key and make it do whatever you want.

JBQ

On Thu, Mar 5, 2009 at 1:08 PM, TAKEphONE <[email protected]> wrote:
>
> Hi again.
>
> Do you mean I can override finish() ?
>
> What do I do there ? - if I just do not call super.finish(),
> the BACK pressing does nothing.
>
> But - wouldnt that cause problems elsewhere (other instances where
> the OS or another app may want/need to close down my app) ?!
>
> Shimon
>
> On Mar 5, 3:57 pm, Jean-Baptiste Queru <[email protected]> wrote:
>> The default behavior of the back key is to exit your activity by
>> calling finish() (which should pop to the next activity in the
>> activity stack of the task your activity was in, or to another task if
>> your activity was at the bottom of its task). You can override that.
>>
>> The behavior of the home key is to switch to the home application, but
>> your activity doesn't exit.
>>
>> JBQ
>>
>>
>>
>> On Thu, Mar 5, 2009 at 3:03 AM, TAKEphONE <[email protected]> wrote:
>>
>> > Hi all,
>>
>> > I know this probably was discussed here before, but I can only find
>> > bits of info.
>>
>> > Say a user runs my app from the HOME screen.
>> > The app has 3 tabs. Say he/she selectes a different tab,
>> > so he/she is in a different screen (same task).
>>
>> > Now - if the user presses BACK - the device returns to the HOME
>> > screen.
>> > If the user launches my app again - the default tab is shown.
>>
>> > BUT - if the user presses HOME - the device returns to the HOME screen
>> > (same).
>> > If the user launches my app again - the OTHER tab is shown.
>>
>> > I understand (sort of) the logic - BACK returns to previous app,
>> > popping my app
>> > from the history stack, so when launched again - it is started from
>> > scratch.
>> > But this is confusing my customers - they say it's a bug !
>> > They dont understand the different between two keys doing the same
>> > thing
>> > as far as they see (returning to HOME).
>>
>> > Moreover - I see a different behavior with the built-in DIALER app - I
>> > change tabs,
>> > press HOME, launch the app again - and it starts with the default tab.
>>
>> > Can I imitate this ?
>>
>> > TIA
>>
>> --
>> Jean-Baptiste M. "JBQ" Queru
>> Android Engineer, Google.
>>
>> Questions sent directly to me that have no reason for being private
>> will likely get ignored or forwarded to a public forum with no further
>> warning.
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

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