[Android General] zhaozihanzzh:
---------- Post added at 12:45 AM ---------- Previous post was at 12:38 AM ----------

After change settingsfragment into PreferenceActivity(because GB2.3 doesn't have settingsfragment),my settings also got a fc because of getActivity.Here is the log:

--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
05-01 08:40:40.222 E/AndroidRuntime(2494): FATAL EXCEPTION: main
05-01 08:40:40.222 E/AndroidRuntime(2494): java.lang.NoSuchMethodError: com.android.settings.temasek.NetworkTraffic.getActivity
05-01 08:40:40.222 E/AndroidRuntime(2494): at com.android.settings.temasek.NetworkTraffic.loadResources(NetworkTraffic.java:234)
05-01 08:40:40.222 E/AndroidRuntime(2494): at com.android.settings.temasek.NetworkTraffic.onCreate(NetworkTraffic.java:73)
05-01 08:40:40.222 E/AndroidRuntime(2494): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-01 08:40:40.222 E/AndroidRuntime(2494): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1620)
05-01 08:40:40.222 E/AndroidRuntime(2494): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1672)
05-01 08:40:40.222 E/AndroidRuntime(2494): at android.app.ActivityThread.access$1500(ActivityThread.java:118)
05-01 08:40:40.222 E/AndroidRuntime(2494): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:932)
05-01 08:40:40.222 E/AndroidRuntime(2494): at android.os.Handler.dispatchMessage(Handler.java:99)
05-01 08:40:40.222 E/AndroidRuntime(2494): at android.os.Looper.loop(Looper.java:130)
05-01 08:40:40.222 E/AndroidRuntime(2494): at android.app.ActivityThread.main(ActivityThread.java:3698)
05-01 08:40:40.222 E/AndroidRuntime(2494): at java.lang.reflect.Method.invokeNative(Native Method)
05-01 08:40:40.222 E/AndroidRuntime(2494): at java.lang.reflect.Method.invoke(Method.java:507)
05-01 08:40:40.222 E/AndroidRuntime(2494): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
05-01 08:40:40.222 E/AndroidRuntime(2494): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
05-01 08:40:40.222 E/AndroidRuntime(2494): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
05-01 08:40:40.222 E/AndroidRuntime(2494): at dalvik.system.NativeStart.main(Native Method)

Not only settings can't work but also my status bar got a force close on gb 2.3.5 device.Can anyone help me?:)Here is the log:

--------- beginning of /dev/log/main

--------- beginning of /dev/log/system
04-30 12:46:13.560 E/Parcel (1083): Reading a NULL string not supported here.
04-30 12:46:13.620 E/dalvikvm(1083): Could not find class 'com.android.systemui.statusbar.toolbar.ToolBarView', referenced from method com.android.systemui.statusbar.StatusBarService.makeStatusBarView
04-30 12:46:14.420 E/AndroidRuntime(1083): FATAL EXCEPTION: main
04-30 12:46:14.420 E/AndroidRuntime(1083): java.lang.RuntimeException: Unable to create service com.android.systemui.statusbar.StatusBarService: android.view.InflateException: Binary XML file line #11: Error inflating class com.android.systemui.statusbar.policy.NetworkTraffic
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.app.ActivityThread.handleCreateService(ActivityThread.java:1964)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.app.ActivityThread.access$2500(ActivityThread.java:118)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:986)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.os.Handler.dispatchMessage(Handler.java:99)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.os.Looper.loop(Looper.java:130)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.app.ActivityThread.main(ActivityThread.java:3698)
04-30 12:46:14.420 E/AndroidRuntime(1083): at java.lang.reflect.Method.invokeNative(Native Method)
04-30 12:46:14.420 E/AndroidRuntime(1083): at java.lang.reflect.Method.invoke(Method.java:507)
04-30 12:46:14.420 E/AndroidRuntime(1083): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
04-30 12:46:14.420 E/AndroidRuntime(1083): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
04-30 12:46:14.420 E/AndroidRuntime(1083): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
04-30 12:46:14.420 E/AndroidRuntime(1083): at dalvik.system.NativeStart.main(Native Method)
04-30 12:46:14.420 E/AndroidRuntime(1083): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class com.android.systemui.statusbar.policy.NetworkTraffic
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.View.inflate(View.java:8807)
04-30 12:46:14.420 E/AndroidRuntime(1083): at com.android.systemui.statusbar.StatusBarService.makeStatusBarView(StatusBarService.java:285)
04-30 12:46:14.420 E/AndroidRuntime(1083): at com.android.systemui.statusbar.StatusBarService.onCreate(StatusBarService.java:215)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.app.ActivityThread.handleCreateService(ActivityThread.java:1954)
04-30 12:46:14.420 E/AndroidRuntime(1083): ... 11 more
04-30 12:46:14.420 E/AndroidRuntime(1083): Caused by: java.lang.reflect.InvocationTargetException
04-30 12:46:14.420 E/AndroidRuntime(1083): at java.lang.reflect.Constructor.constructNative(Native Method)
04-30 12:46:14.420 E/AndroidRuntime(1083): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
04-30 12:46:14.420 E/AndroidRuntime(1083): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
04-30 12:46:14.420 E/AndroidRuntime(1083): ... 23 more
04-30 12:46:14.420 E/AndroidRuntime(1083): Caused by: java.lang.NoSuchMethodError: android.content.ContentResolver.registerContentObserver
04-30 12:46:14.420 E/AndroidRuntime(1083): at com.android.systemui.statusbar.policy.NetworkTraffic$SettingsObserver.observe(NetworkTraffic.java:174)
04-30 12:46:14.420 E/AndroidRuntime(1083): at com.android.systemui.statusbar.policy.NetworkTraffic.(NetworkTraffic.java:220)
04-30 12:46:14.420 E/AndroidRuntime(1083): at com.android.systemui.statusbar.policy.NetworkTraffic.(NetworkTraffic.java:207)
04-30 12:46:14.420 E/AndroidRuntime(1083): ... 26 more

Sorry for my bad English.

Android小楼阁-QQ群 439637151

来自搭载Android 2.3 GingerBread的华为Y220-T10