public void showUpdateDialog(String content) {
//普通的AlertDialog对话框
AlertDialog.Builder builder = new AlertDialog.Builder(LoadingActivity.this);
builder.setTitle("版本更新");
builder.setMessage(content);
builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
MyApp.getApp().showToast("取消");
}
});
builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
MyApp.getApp().showToast("确定");
}
});
AlertDialog dialog = builder.create();
dialog.show();
}