com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:197)
在MainActvity中显示对话框,点击更新后报错,为什么报错呢??求大神解决啊,搞了好久,,,,,,,upgradeDialog=newAlertDialog.Bui...
在MainActvity中显示对话框,点击更新后报错,为什么报错呢??求大神解决啊,搞了好久,,,,,,,
upgradeDialog = new AlertDialog.Builder(MainActivity.this,
AlertDialog.THEME_DEVICE_DEFAULT_LIGHT)
.setTitle("新版本更新内容")
.setMessage("123456")
.setPositiveButton("现在更新",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
dialog.dismiss();
webView1.loadUrl(某网址);
}
})
.setNegativeButton("以后再说",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
dialog.dismiss();
}
}).create();
upgradeDialog.show(); 展开
upgradeDialog = new AlertDialog.Builder(MainActivity.this,
AlertDialog.THEME_DEVICE_DEFAULT_LIGHT)
.setTitle("新版本更新内容")
.setMessage("123456")
.setPositiveButton("现在更新",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
dialog.dismiss();
webView1.loadUrl(某网址);
}
})
.setNegativeButton("以后再说",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
dialog.dismiss();
}
}).create();
upgradeDialog.show(); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询