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. driver spica

ada yg bisa kirimkan saya driver ini? thanks all

syd
ptk

-- 
"Indonesian Android Community [id-android]" 

2. Getting XML attributes for custom control

I've created a combo box control with a edittext and spinner.

I'm trying to let the android:prompt attribute be passed onto the
spinner, which means I need to catch it in the constructor which
passes my the AttributeSet and set it on the spinner.

I can't figure out how to get the value of the prompt.

I'm trying,
TypedArray ta = context.getTheme().obtainstyledAttributes(new int[]
{ android.R.attr.prompt });

int id = ta.getResourceId(0, 0);

I get back 0, which means it didn't find the attribute.

Thanks

-- 

3. Program u/ shrink image

4. AbstractAccountAuthenticator.getAccountRemovalAllowed query

5. Put multiple lines of images

6. NEW TOURIEST SPOTS IN KERELAhi,just see that

7. How could I make such a UI? customized UI issue