问题描述
我正在尝试使用 Java 在 android studios 中构建一个对话框。 但问题是,无论我尝试它,错误 “D/InputTransport:历史重采样间隔太短,不能用它重采样!!” 出现。 我已经搜索了一个解决方案,但我没有发现类似的东西。 我也用另一部手机试过,但效果不佳。 这是我的源文本:
public void add(View view){
AlertDialog alertDialog = new AlertDialog.Builder(this).create();
alertDialog.setTitle("title");
alertDialog.setMessage("text");
alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL,"OK",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,int which) {
}
});
alertDialog.show();
}
方法“add”是通过一个按钮打开的。 我会很高兴每一次帮助!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)