Why different behaviour when exiting app using BACK and HOME ?

by Jean-Baptiste Queru » Thu, 05 Mar 2009 21:58:02 GMT


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






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

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



Why different behaviour when exiting app using BACK and HOME ?

by Jean-Baptiste Queru » Fri, 06 Mar 2009 05:10:04 GMT


 You can capture the back key and make it do whatever you want.

JBQ








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

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


Sponsored Links


Why different behaviour when exiting app using BACK and HOME ?

by Marco Nelissen » Fri, 06 Mar 2009 06:22:27 GMT


 ctivity.onKeyDown()


On Thu, Mar 5, 2009 at 2:11 PM, TAKEphONE <shimo...@gmail.com> wrote:

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



Why different behaviour when exiting app using BACK and HOME ?

by Dianne Hackborn » Fri, 06 Mar 2009 07:02:22 GMT


 ut, 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 <shimo...@gmail.com> wrote:



--
Dianne Hackborn
Android framework engineer
hack...@android.com

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.

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



Why different behaviour when exiting app using BACK and HOME ?

by Dianne Hackborn » Fri, 06 Mar 2009 07:42:47 GMT


 




To be fair, the browser is basically emulating an activity stack within a
single activity, so it makes sense for it to steal the back key in certain
situations to do that behavior.

But sometimes it does the wrong thing, and is very annoying.

-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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.

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



Other Threads

1. Mod: Gathering ID-Android With XL, Sabtu, 16 January 2010

Rekan-rekan pecinta Android yang berbahagia,

Kembali komunitas ID Android  mengadakan Gathering/pertemuan ke dua,
gathering kali ini mendapat dukungan penuh dari  XL Axiata.

Rrencana nya akan diadakan pada :

Hari/Tanggal   :  Sabtu, 16 January 2010
Waktu             :  13:00 s/d 16:00  WIB
Tempat           : Coffee Club Plaza Senayan (tentative)

Acara bersifat  santai, lebih banyak berdiskusi dan sharing session, akan
disiapkan juga media presentasi (proyektor+layar) untuk acara presentasi dan
sharing session.

XL juga akan menyiapkan:

-Goodie bag merchendise
-Minuman, makanan ringan on the spot
-SP unlimited dengan harga yang sangat special bagi member id-android.

Bagi member Komunitas ID Android yang berminat hadir, silahkan daftar via
email:  agus.hamonan...@gmail.com


-- 
Salam,

Agus Hamonangan
agus.hamonan...@gmail.com

Indonesia Google Technology User Group

2. Linking external libraries to Android native shared library

'out/apps/MyApplication//libexternal1.a' : file not recognized: File
format not recognized

--The above error might mean that the toolchain with which you have compiled
libexternal1.a, is not compatible with Android toolchain.

Regards,
Sonal




> website: 

3. scaling_setspeed doesn't change the frequency on beagleboard

4. HTML Mail

5. Quick Setting - Free

6. (SIGSEGV) fault when create and exit app a few times

7. MediaPlayer : detect buffering event