Foreground Activity

Put your problem here if it does not fit any of the other categories.

Foreground Activity

Postby shekh_java » Sat Dec 12, 2009 12:01 pm

Hi Everyone,

Whenever I press home key my application(activity) goes into background But I want to keep it in foreground(Show app window).

is it possible to bring my app in foreground on home key press ????????

Can anyone help me about this matter.

Thanks In Advance
Hello everybody
Junior Developer
Junior Developer
Posts: 14
Joined: Sat Feb 07, 2009 3:02 pm
Location: JAIPUR


Postby Droid123 » Mon Dec 14, 2009 1:11 am

You can press and hold the Home key, a menu will show up where you can select a running app to move into focus.

If you want to prevent your app from moving to the background you could also catch a Home key press event, but thats discouraged since it hinders basic Android UI experience
Experienced Developer
Experienced Developer
Posts: 77
Joined: Sat Nov 21, 2009 1:21 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 2 guests