new PromptDialog(this)
.setDialogType(PromptDialog.DIALOG_TYPE_WARNING)
.setCancelable(false)
.setTitleText("Alert") // Shows error ...why?
.setContentText("Are you there")
.setPositiveListener("YES", new PromptDialog.OnPositiveListener()
{
@Override
public void onClick(PromptDialog dialog) {
dialog.dismiss();
}
}).show();