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 xxx.yanan.tfinal.annotation.view.EventListener.invokeClickMethod(EventListener.java:108)
08-05 17:36:12.809: W/System.err(10378):     at xxx.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 xxx.yanan.common.widgets.view.MDateTimePickerDialog.show(MDateTimePickerDialog.java:172)
08-05 17:36:12.819: W/System.err(10378):     at xxx.yanan.act.oa.OaScheduleAddAct.endTimeListener(OaScheduleAddAct.java:151)
08-05 17:36:12.819: W/System.err(10378):     ... 15 more

 

Dialog 和AlertDialog的区别

posted on 2014-08-05 17:37  洛易  阅读(639)  评论(0编辑  收藏  举报