But, you know, changing your app to be inconsistent with the standard app
model used by the system is generally not a good idea.

Every app I download that doesn't let me press back to get out of it has a
special little black spot in my heart.

On Thu, Mar 5, 2009 at 2:55 PM, TAKEphONE <[email protected]> wrote:

>
> Thanks !
>
> On Mar 6, 12:13 am, Marco Nelissen <[email protected]> wrote:
> > Activity.onKeyDown()
> >
> > On Thu, Mar 5, 2009 at 2:11 PM, TAKEphONE <[email protected]> wrote:
> >
> > > Hi,
> >
> > > Sorry to be a nag, but how do you mean I capture the BACK key ?
> > > Is it by overriding the finish() method ?
> >
> > > Or is there some other method ? can you point me to it ?
> >
> > > Thanks again.
> >
> > > On Mar 5, 11:09 pm, Jean-Baptiste Queru <[email protected]> wrote:
> > >> 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.
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

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.

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