I create a AlertDialog with the code below.
For some reason I\'m getting an extra background (see pic) on Honeycomb and above.
The code crashes
Figured out the answers
R.style.MyTheme or android.R.style.Theme_Holo_Dialog
with AlertDialog.THEME_HOLO_LIGHT the code worked just
fine.Seems the constructor AlertDialog.Builder(Context context, int
theme) was introduced in API 11. My fix was simply to change the
line to:
final AlertDialog.Builder builder;
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
builder = new AlertDialog.Builder(this);
} else {
builder = new AlertDialog.Builder(this,R.style.JumpDialog);
}