You can look at what the Activity Manager does as an example.

On Wed, Feb 4, 2009 at 10:24 PM, kevin_fan <kevin....@gmail.com> wrote:

>
> Hi group,
> I intended to show a dialog in a service process, then I tried to use
> the AlertDialog but got the below error message:
>
>    WindowManager$BadTokenException: Unable to add window -- token
> null is not for an application
>
> The reason seems to be that the dialog is not used in a application
> context (activity should be fine?)
>
> Was there any way that can solve this problem? any advises will be
> approciated!!!
>
> Many thanks!
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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

Reply via email to