Pushing application from foregound to background

by Safy » Wed, 30 Sep 2009 02:09:17 GMT

Sponsored Links

   How can I push application from foreground to background on
keyevent. In Blackberry you have a function called request background
which pushes the UI application from foreground to background. How can
I achieve this functionality in Android, is this possible ?



Pushing application from foregound to background

by Mark Murphy » Wed, 30 Sep 2009 02:13:20 GMT


Have the user press the HOME key.

Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Android Programming Tutorials_ Version 1.0 Available!


Sponsored Links

Pushing application from foregound to background

by Yusuf Saib (T-Mobile USA) » Wed, 30 Sep 2009 03:02:41 GMT

 It depends on what you mean by "background". If you want the Activity
to disappear and not to anything until next time, save your state and
call finish(). OTOH, if you want it to continue doing something in the
background, you can run a Service as part of your app.

Yusuf Saib
T  Mobile stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


Other Threads

1. gingerbread buat archos gen8

dear bro bro.

udah adakah gingerbread android 2.3 untuk archos gen8 ?

bisa donlod di mana yak.. cooking nya dsb.

safitry ozawa


2. UI Builder in 2.3

I read that there was a preview of the new UI Builder in the release
of Gingerbread today, I think this will be a nice feature to have. I
can't seem to locate it (did an Android update on my SDK), does anyone
know where it is or how to get it? I am interested in seeing what to
expect from it.

I looked around my SDK directory, but couldn't see where it would be,
and read on the developer site, but aside from the one mention of it,
haven't found anything.


Steven Gillan


3. Android - add menu item to Android's built-in apps

4. Did Market Ranking Change?

5. 3D Figures in Android

6. how use overlay to display yuv video frames ?

7. AppWidget's service killed under Gingerbread & GalaxyS(2.1) but not killed under other phones/versions