import android.R;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
class Utils {
final static AlertDialog Question(Context context, int message_id,
DialogInterface.OnClickListener yes_listener) {
AlertDialog.Builder dialog = new AlertDialog.Builder(context);
dialog.setMessage(message_id);
dialog.setPositiveButton("yes", yes_listener);
dialog.setNegativeButton("no", null);
dialog.setCancelable(true);
return dialog.show();
}
}