Android Exception 9(requestFeature() must be called before adding content)

08-05 17:36:12.799: W/System.err(10378): java.lang.reflect.InvocationTargetException
08-05 17:36:12.799: W/System.err(10378):     at java.lang.reflect.Method.invokeNative(Native Method)
08-05 17:36:12.809: W/System.err(10378):     at java.lang.reflect.Method.invoke(Method.java:511)
08-05 17:36:12.809: W/System.err(10378):     at com.tongyan.yanan.tfinal.annotation.view.EventListener.invokeClickMethod(EventListener.java:108)
08-05 17:36:12.809: W/System.err(10378):     at com.tongyan.yanan.tfinal.annotation.view.EventListener.onClick(EventListener.java:98)
08-05 17:36:12.809: W/System.err(10378):     at android.view.View.performClick(View.java:4100)
08-05 17:36:12.809: W/System.err(10378):     at android.view.View$PerformClick.run(View.java:17016)
08-05 17:36:12.809: W/System.err(10378):     at android.os.Handler.handleCallback(Handler.java:615)
08-05 17:36:12.809: W/System.err(10378):     at android.os.Handler.dispatchMessage(Handler.java:92)
08-05 17:36:12.809: W/System.err(10378):     at android.os.Looper.loop(Looper.java:137)
08-05 17:36:12.809: W/System.err(10378):     at android.app.ActivityThread.main(ActivityThread.java:4815)
08-05 17:36:12.809: W/System.err(10378):     at java.lang.reflect.Method.invokeNative(Native Method)
08-05 17:36:12.809: W/System.err(10378):     at java.lang.reflect.Method.invoke(Method.java:511)
08-05 17:36:12.809: W/System.err(10378):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
08-05 17:36:12.809: W/System.err(10378):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
08-05 17:36:12.809: W/System.err(10378):     at dalvik.system.NativeStart.main(Native Method)
08-05 17:36:12.809: W/System.err(10378): Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
08-05 17:36:12.809: W/System.err(10378):     at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:215)
08-05 17:36:12.809: W/System.err(10378):     at com.android.internal.app.AlertController.installContent(AlertController.java:234)
08-05 17:36:12.809: W/System.err(10378):     at android.app.AlertDialog.onCreate(AlertDialog.java:336)
08-05 17:36:12.819: W/System.err(10378):     at android.app.Dialog.dispatchOnCreate(Dialog.java:351)
08-05 17:36:12.819: W/System.err(10378):     at android.app.Dialog.show(Dialog.java:256)
08-05 17:36:12.819: W/System.err(10378):     at com.tongyan.yanan.common.widgets.view.MDateTimePickerDialog.show(MDateTimePickerDialog.java:172)
08-05 17:36:12.819: W/System.err(10378):     at com.tongyan.yanan.act.oa.OaScheduleAddAct.endTimeListener(OaScheduleAddAct.java:151)
08-05 17:36:12.819: W/System.err(10378):     ... 15 more

 

Dialog 和AlertDialog的区别

Android Exception 9(requestFeature() must be called before adding content),,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。