【Exception】 java.lang.NoSuchMethodError: android.app.AlertDialog$Builder.setOnDismissListener
时间:2014-05-16 07:49:31
收藏:0
阅读:606
f(Build.VERSION.SDK_INT >10)
builder =newAlertDialog.Builder(getActivity(), R.style.Theme.Sherlock.Dialog);else
builder =newAlertDialog.Builder(getActivity());
AlertDialog.Builder builder;try{
builder =newAlertDialog.Builder(getActivity(), R.style.Theme.Sherlock.Dialog);}catch(NoSuchMethodError e){Log.e(TAG,"Older SDK, using old Builder");
builder =newAlertDialog.Builder(getActivity());}
评论(0)