My Activity is trying to create an AlertDialog which requires a Context as a parameter. This works as expected if I use:
AlertDialog.Builder builder = new Al
Or another possibility is to create Dialog as follow:
final Dialog dialog = new Dialog(new ContextThemeWrapper( this, R.style.MyThemeDialog));