AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("我的讯息(标题)");
builder.setMessage("这是我发出的信号");
builder.create();
builder.setPositiveButton("右边按钮",new DialogInterface.OnClickListener() {public void onClick(DialogInterface p1, int p2){/*。。。执行内容。。。*/}});
builder.setNegativeButton("左边按钮",new DialogInterface.OnClickListener() {public void onClick(DialogInterface p1, int p2){/*。。。执行内容。。。*/}});
builder.show();AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("我的讯息(标题)");
builder.setMessage("这是我发出的信号");
builder.create();
builder.setPositiveButton("右边按钮",new DialogInterface.OnClickListener() {public void onClick(DialogInterface p1, int p2){/*。。。执行内容。。。*/}});
builder.setNegativeButton("左边按钮",new DialogInterface.OnClickListener() {public void onClick(DialogInterface p1, int p2){/*。。。执行内容。。。*/}});
builder.show();