Create an activity that does nothing but display a dialog and start the
activity from the service.

*> Having searched about this I know the normal thing to do is to display
> a status bar notification, however I want to interrupt the user and
> stop them doing whatever they currently are.  Is there any way to do
> this?  I know its considered bad programming, but it won't be as
> intrusive as it sounds!
*
I would seriously consider using the status bar notification.  If I
installed an app and it did that to me it would be uninstalled immediately.

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Wed, Nov 25, 2009 at 3:56 AM, Tom Reay <tomfr...@gmail.com> wrote:

> Hi,
> Now I know that a dialog has to be started from an activity.  However
> I have a service running and I want it to be able to display a
> dialog.
>
> Having searched about this I know the normal thing to do is to display
> a status bar notification, however I want to interrupt the user and
> stop them doing whatever they currently are.  Is there any way to do
> this?  I know its considered bad programming, but it won't be as
> intrusive as it sounds!
> Thanks
> Tom Reay
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
> To post to this group, send email to android-beginners@googlegroups.com
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to