我想在Intent Service内部显示一个警告对话框。
AlertDialog alertDialog = new AlertDialog.Builder(this).create();
这会抛出以下异常
Unable to add window — token null is not for an application
我已经尝试过IntentService.this和getApplicationContext()了,但我不想使用Activity来实现。我只想显示一个简单的带有一些文本的警告对话框。