AlertDialog.Builder builder = new AlertDialog.Builder(activity); builder.setTitle("ALERTTILESTRING") .setMessage("alertNameString") .setCancelable(false) .setNegativeButton("Close",new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); AlertDialog alert = builder.create(); alert.show(); }
沒有留言:
張貼留言