Show background applications dialog in front of current application

by denzel » Mon, 09 Mar 2009 23:32:14 GMT


Sponsored Links
 Hi,

I have an app that is running in the background doing some things.
Sometimes this apps needs  user input and therefore it shows a dialog.
While the app is running, I use some other app like the browser. Is it
possible to sort of interrupt the browser app (or another app that I'm
using at that moment) so that the dialog that my app wants show,
appears in front of the browser?

Here's the piece of code that I'm using right now to show the dialog:

Dialog userprompt = new Dialog(activity);
userprompt.setTitle("Prompt User");
userprompt.setContentView(R.layout.prompt);
userprompt.show();

Thanks in advance!

Kind regards,

Denzel
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Searching maps

Hi,
    I am writing an application (on v1.0) that needs to search Google
maps for the nearest facility to my current location e.g. what are the
nearest bike shops. Can anyone give advice on how to do this? I looked
at googlenav.Search but this has been deprecated for some reason. I
did look at the Qype APIs but gave up early as these were difficult to
use. I am really stuck and would appreciate any advise here.

Thanks,

Clive


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

2. Theme and Styles stores

Hi,

Any Theme and Style store available for preview and purchase.

What is the good source to develop Themes and styles for andorid.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
--~--~---------~--~----~------------~-------~--~----~

3. SDK 1.5 in Eclipse on Vista gives null Manifest path location.

4. SurfaceView on G1

5. widget views

6. playing sounds simultaneously

7. SDK 1.5 in Eclipse on Vista gives null Manifest path location.