首页上一页 1 下一页尾页 3 条记录 1/1页
Android从入门到精通4.1.8
发表在Android图书答疑
2015-12-15
是否精华
是
否
版块置顶:
是
否
问题主要在与在android下实现出现12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ui49/com.example.ui49.MainActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2345)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:139)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5314)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:265)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.Activity.requestWindowFeature(Activity.java:3349)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at com.example.ui49.MainActivity.onCreate(MainActivity.java:23)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5301)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2345) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:139) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5314) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2295)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2345)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:139)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5314)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:265)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.Activity.requestWindowFeature(Activity.java:3349)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at com.example.ui49.MainActivity.onCreate(MainActivity.java:23)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5301)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259)
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2345) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:139) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5314) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method) 
12-15 15:50:27.280 871-871/com.example.ui49 E/AndroidRuntime: at