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. LVL airplane mode use case ...

This simple use case is proving trickier than I would have thought it
would be. My app is designed to operate while the phone is in airplane
mode.

1) A user downloads the app, runs it once with wireless connectivity
to get a license.

Then there are two cases to consider:

2a) User requests a refund with the permitted timeframe, and
2b) User is happy with the app, and switches to airplane mode forever.

My initial approach is to set the validity timestamp preference to
some date far in the future. This is fine for 2b, but what about 2a?
During the refund period, seems to me that my app should interact with
the license server just like any standard ServerManagedPolicy-based
app would, and only after the refund period expires would I set the
cache validity horizon to forever. Can I rely on refund mechanism
deleting my app and stored preferences thereby making 2a a non-issue?

It occurs to me that a very useful server extra would be a boolean
indicating whether the refund period has expired.

-- 

2. About Promo code concept in android

Hi All,

   Can any one tell me, is there any promo code concept in android for our
apps like in the iPhone. If yes please provide me the necessary information
how to do that?????????

-- 
Thanks & Regards
B.NagaRaju
Software Engineer
9966990732
WWW.arijasoft.com

-- 

3. Changing app name in market

4. Programmatically access Android social network settings

5. RawContactsEntity - Invalid column aggregation_mode

6. Remote Service - Reconnecting

7. How to know the home launcher app packagename through programming?