Otrzymuję NoSuchMethodException
podczas korzystania z setOnDismissListener
na Dialog
w systemie Android na urządzeniu z 4.1.2.Dlaczego występuje wyjątek Android NoSuchMethodException w zestawie AlertDialog.Builder setOnDismissListener
Ten sam kod działa na emulatorze z wersją 4.2.2.
new AlertDialog.Builder(this)
.setTitle(R.string.select_province)
.setOnDismissListener(new OnDismissListener() {
public void onDismiss(DialogInterface arg0) {
//== other stuff
}
}).show();
Wszelkie pomysły?