关于标题的错误

时间:2011-04-26 09:29:41

标签: android

我在AndroidRunTimeException上得到了Exception。 。 。 它表示您无法将自定义标题与其他标题功能组合使用。 anybudy可以说它为什么会发生? 我的例外情况如下:

04-26 15:26:12.461: ERROR/BluetoothChat(455): +++ ON CREATE +++
04-26 15:26:12.616: ERROR/AndroidRuntime(455): Uncaught handler: thread main exiting due to uncaught exception
04-26 15:26:12.701: ERROR/AndroidRuntime(455): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.menu/com.menu.volunteer_management.BluetoothChatApp}: android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.app.ActivityThread.access$2200(ActivityThread.java:119)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.os.Looper.loop(Looper.java:123)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.app.ActivityThread.main(ActivityThread.java:4363)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at java.lang.reflect.Method.invokeNative(Native Method)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at java.lang.reflect.Method.invoke(Method.java:521)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at dalvik.system.NativeStart.main(Native Method)
04-26 15:26:12.701: ERROR/AndroidRuntime(455): Caused by: android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:183)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2057)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2207)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:194)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.app.Activity.setContentView(Activity.java:1622)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at com.menu.volunteer_management.BluetoothChatApp.onCreate(BluetoothChatApp.java:74)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
04-26 15:26:12.701: ERROR/AndroidRuntime(455):     ... 11 more

谢谢..

1 个答案:

答案 0 :(得分:0)

在Android 4.0及更高版本中,您无法以这种方式添加自定义标题,请获取此文档的帮助。

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/CustomTitle.html