【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());}

【Exception】 java.lang.NoSuchMethodError: android.app.AlertDialog$Builder.setOnDismissListener,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!