【发布时间】:2014-05-02 20:37:26
【问题描述】:
我想从 Intent 服务中显示一个警报对话框。
AlertDialog alertDialog = new AlertDialog.Builder(this).create();
这会引发以下异常
Unable to add window — token null is not for an application
我也尝试过 IntentService.this 和 getApplicationContext()。在我不想使用活动之间。我只想显示一个带有小文本的简单警报对话框。
【问题讨论】:
-
感谢您的链接。
标签: android android-intent android-alertdialog intentservice