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. How to GIF image for a finate time

Hi all,
I want to show  a loading Image of GIF type  for a finite time .how to
do this.
Please tell me the solution if anyone knows.


2. Crashed Service not restarting - !!! FAILED BINDER TRANSACTION !!! - Dianne could you help ?

You probably want to fix the cause of your service crashing, so...  what is
the actual stack crawl of the exception?  You don't show that anywhere.

> > > > > > > > 

3. Will native libs built with the NDK work with the Nexus One?

4. What happens if...

5. android emulator speed

6. Start new activity in TAB

7. MediaPlayer ... a nest of undocumented pitfalls