вы можете использовать класс AlertDialog
AlertDialog.Builder alertbox = new AlertDialog.Builder(this);
alertbox.setMessage("Downloading");
alertbox.setPositiveButton("Cancel", new DialogInterface.OnClickListener() {
// do something when the button is clicked
public void onClick(DialogInterface arg0, int arg1) {
..... //cancel code
}
});
alertbox.setNegativeButton("Pause", new DialogInterface.OnClickListener() {
// do something when the button is clicked
public void onClick(DialogInterface arg0, int arg1) {
.... //pause code
}
});
// display box
alertbox.show();