I created a alertDialog in olders api is working but on API 23 my applications is crashed here:
int alertTitleId = resources.getIdentifier("title", "id", "android");
TextView alertTitle = (TextView) dialog.getWindow().findViewById(alertTitleId);
alertTitle.setTypeface(alertTitle.getTypeface(), Typeface.BOLD); //BOLD
In logs I see that alertTitle in null how I can fix this?