Please I do not understand why this Dialog doesn't get shown.
public static void send(Message message) {
mMessage=message;
Resources res = Email.mContext.getResources();
String body = String.format(res.getString(R.string.email_send_by_sms_body), 15, 45);//WTF
AlertDialog.Builder messageBox = new AlertDialog.Builder(Email.mContext);
messageBox.setTitle(R.string.email_send_by_sms_title);
messageBox.setMessage(body);
messageBox.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
try {
sendEmail();
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
});
messageBox.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
//doSaveDraft();
}
});
messageBox.create().show();
}