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. System not support the long-pressed behavior entering screen-off mode

Hi All,

In default behavior, I found system not supprot the long-pressed
behavior entering screen-off mode based on OS Donut or Eclair. I tried
to set the wake flag in the KeyMapLayout config, and it didn't work.

If adding the long-pressed behavior in this scenario, any suggestion
for this issue?

Many Thanks,
Shawn

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. sysinfo function porting to NDK

Hi,
     I'm porting Linux C code to NDK. I was used sysinfo interface in
my code.

When i compile the souce code , i get the following error.

undefined reference to `sysinfo'
collect2: ld returned 1 exit status

We have include the header file such as
#include <sys/sysinfo.h>

But still the problem is happen.

Please guide me, how to resolve this issue.

Thanks

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Parsing HID report using hid class driver

4. Trouble debugging application on device

5. Stop LBS service programmatically

6. Android eclair 2.1 - problem to get dns through dhcpcd in wifi network

7. Finally published my first app - thanks to this group!