你的位置:首页 > 软件开发 > 操作系统 > Android 使用弹出对话框,报Unable to add window错误

Android 使用弹出对话框,报Unable to add window错误

发布时间:2015-03-13 12:00:29
今天在使用Android弹出对话框的时候,报了一个unable to add window错误,我的代码如下new AlertDialog.Builder(getApplicationContext()).setTitle("提示").setMessage(& ...

今天在使用Android弹出对话框的时候,报了一个unable to add window错误,我的代码如下

new AlertDialog.Builder(getApplicationContext()).setTitle("提示").setMessage("你确定要删除么?")				.setPositiveButton("确定", new DialogInterface.OnClickListener() {					public void onClick(DialogInterface dialog, int which) {					}				 }				}).setNegativeButton("取消",					    new DialogInterface.OnClickListener() {			      @Override			      public void onClick(DialogInterface dialog, int which) {			        dialog.cancel();			      }			    }).show();

原标题:Android 使用弹出对话框,报Unable to add window错误

关键词:Android

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录