Alert dialog box. Generator Generator = New Alert dialog box. Builder (Ben);
Builder.setTitle ("prompt ")。 SetMessage ("prompt message of dialog box"). SetPositiveButton ("OK "), a new dialog interface. onclick Listener () {
@ Overlay
public void onClick(dialog interface dialog,int which) {
//Determine the click event of the button.
}
})}) ... SetNegativeButton ("Cancel", a new dialog interface. onclick Listener () {
@ Overlay
public void onClick(dialog interface dialog interface,int i) {
//Cancel the click event of the button.
}
}) Display ();
If you are talking about Toast pop-up, you can do this:
Toast.makeText(this, "prompt content", toast. LENGTH_SHORT)。 show();
I hope the above answers can help you. Thank you.