Why different behaviour when exiting app using BACK and HOME ?

by TAKEphONE » Thu, 05 Mar 2009 19:03:18 GMT


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


--~--~---------~--~----~------------~-------~--~----~



Why different behaviour when exiting app using BACK and HOME ?

by TAKEphONE » Fri, 06 Mar 2009 05:00:38 GMT


 Hi,

Thanks for your prompt reply.

How do I override it ?

How does the built-in DIALER app always start in the same tab ?

Thanks.




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Why different behaviour when exiting app using BACK and HOME ?

by TAKEphONE » Fri, 06 Mar 2009 05:08:43 GMT


 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




--~--~---------~--~----~------------~-------~--~----~



Why different behaviour when exiting app using BACK and HOME ?

by TAKEphONE » Fri, 06 Mar 2009 06:12:13 GMT


 i,

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:09pm, Jean-Baptiste Queru <j...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Why different behaviour when exiting app using BACK and HOME ?

by TAKEphONE » Fri, 06 Mar 2009 06:55:34 GMT


 hanks !

On Mar 6, 12:13am, Marco Nelissen <marc...@android.com> wrote:
--~--~---------~--~----~------------~-------~--~----~



Why different behaviour when exiting app using BACK and HOME ?

by Edward Falk » Fri, 06 Mar 2009 07:27:25 GMT


 > Every app I download that doesn't let me press back to get out of it has a

Agreed.

The web browser comes to mind.  It's a huge hassle to exit it.
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. howto access music file properties?

I would like to retrieve the properties that describe an mp3 file's
properties (ie: author, album, title ...).  I was not able to use
javax.sound.sampled.AudioFileFormat to do this.  Advice super
appreciated.

Thank you,
i++
--~--~---------~--~----~------------~-------~--~----~

2. Identifying a Phone By A Unique ID?

Is there some method in which i can identify a phone, a serial number
or something similar that's accessible by code?
--~--~---------~--~----~------------~-------~--~----~

3. Custom Drawables and Shadows

4. Problem in sending messages with special characters

5. Getting location with multiple providers

6. VOIP support

7. ********MASALA SPOT**********