It is impossible to display the text in the dialog box taken from resources, instead of it there are numbers 2131230764. At the same time, if you remove the getDate() code from the code, the text is displayed correctly.
AlertDialog.Builder adb = new AlertDialog.Builder(this); // заголовок adb.setTitle("Заголовок"); // сообщение adb.setMessage(R.string.text1+getDate()+"text2"); // иконка adb.setIcon(android.R.drawable.ic_dialog_info); // кнопка положительного ответа adb.setPositiveButton("Да", myClickListener); // кнопка отрицательного ответа adb.setNegativeButton("Нет", myClickListener); 