我为"public void onUpgrade database"中的"align new fields"启动TaskAsync当我到达ProgressDialog.show(在TaskAsync中(时,我收到了这个错误:
"无法添加窗口-空令牌不适用于应用程序">
为什么?。。。onUpgrade不是活动。。。我已经传递了一个.getApplicationContext((,但出现了相同的错误。我试着删除"进度对话框"的所有结构,它是工作性能。
在sqlite数据库的"On Upgrade"事件中应该使用哪个上下文?
我遇到了同样的问题,不要使用getApplicationContext()
,使用ACTIVITY_NAME.this
作为上下文。