[Galaxy S Plus I9001 Android Development] arviit:
About USB Settings Force Close

I had a look at logcat during USB Settings Force Close and it registered these errors:

12:12:01.078 Debug SPRC 7369 SPRC: package: [com.android.settings] class: [HideSetting] problem: props not loaded [public void hideSettings(PreferenceActivity preferenceActivity)]

12:12:01.078 Warning System.err 7369 android.provider.Settings$SettingNotFoundException: bluetooth_enabled

12:12:01.078 Warning System.err 7369	at android.provider.Settings$Secure.getInt(Settings.java:2305)

12:12:01.078 Warning System.err 7369	at com.android.settings.WirelessSettings.onResume(WirelessSettings.java:289)

12:12:01.079 Warning System.err 7369	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)

12:12:01.079 Warning System.err 7369	at android.app.Activity.performResume(Activity.java:3832)

12:12:01.079 Warning System.err 7369	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2114)

12:12:01.079 Warning System.err 7369	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2139)

12:12:01.079 Warning System.err 7369	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1672)

12:12:01.079 Warning System.err 7369	at android.app.ActivityThread.access$1500(ActivityThread.java:117)

12:12:01.079 Warning System.err 7369	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)

12:12:01.079 Warning System.err 7369	at android.os.Handler.dispatchMessage(Handler.java:99)

12:12:01.079 Warning System.err 7369	at android.os.Looper.loop(Looper.java:130)

12:12:01.079 Warning System.err 7369	at android.app.ActivityThread.main(ActivityThread.java:3687)

12:12:01.079 Warning System.err 7369	at java.lang.reflect.Method.invokeNative(Native Method)

12:12:01.079 Warning System.err 7369	at java.lang.reflect.Method.invoke(Method.java:507)

12:12:01.080 Warning System.err 7369	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)

12:12:01.080 Warning System.err 7369	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)

12:12:01.080 Warning System.err 7369	at dalvik.system.NativeStart.main(Native Method)

12:12:01.089 Warning System.err 7369 android.provider.Settings$SettingNotFoundException: wifi_enabled

12:12:01.089 Warning System.err 7369	at android.provider.Settings$Secure.getInt(Settings.java:2305)

12:12:01.089 Warning System.err 7369	at com.android.settings.WirelessSettings.onResume(WirelessSettings.java:300)

12:12:01.089 Warning System.err 7369	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)

12:12:01.089 Warning System.err 7369	at android.app.Activity.performResume(Activity.java:3832)

12:12:01.089 Warning System.err 7369	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2114)

12:12:01.089 Warning System.err 7369	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2139)

12:12:01.089 Warning System.err 7369	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1672)

12:12:01.089 Warning System.err 7369	at android.app.ActivityThread.access$1500(ActivityThread.java:117)

12:12:01.089 Warning System.err 7369	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)

12:12:01.089 Warning System.err 7369	at android.os.Handler.dispatchMessage(Handler.java:99)

12:12:01.089 Warning System.err 7369	at android.os.Looper.loop(Looper.java:130)

12:12:01.090 Warning System.err 7369	at android.app.ActivityThread.main(ActivityThread.java:3687)

12:12:01.090 Warning System.err 7369	at java.lang.reflect.Method.invokeNative(Native Method)

12:12:01.090 Warning System.err 7369	at java.lang.reflect.Method.invoke(Method.java:507)

12:12:01.090 Warning System.err 7369	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)

12:12:01.090 Warning System.err 7369	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)

12:12:01.112 Warning System.err 7369	at dalvik.system.NativeStart.main(Native Method)

...

...

...

12:12:01.926 Warning dalvikvm 7369 threadid=1: thread exiting with uncaught exception (group=0x4001d608)

12:12:01.927 Error AndroidRuntime 7369 FATAL EXCEPTION: main

12:12:01.927 Error AndroidRuntime 7369 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.UsbSettings}: java.lang.NumberFormatException: unable to parse '' as integer

12:12:01.927 Error AndroidRuntime 7369	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)

12:12:01.927 Error AndroidRuntime 7369	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)

12:12:01.927 Error AndroidRuntime 7369	at android.app.ActivityThread.access$1500(ActivityThread.java:117)

12:12:01.927 Error AndroidRuntime 7369	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)

12:12:01.927 Error AndroidRuntime 7369	at android.os.Handler.dispatchMessage(Handler.java:99)

12:12:01.927 Error AndroidRuntime 7369	at android.os.Looper.loop(Looper.java:130)

12:12:01.927 Error AndroidRuntime 7369	at android.app.ActivityThread.main(ActivityThread.java:3687)

12:12:01.927 Error AndroidRuntime 7369	at java.lang.reflect.Method.invokeNative(Native Method)

12:12:01.927 Error AndroidRuntime 7369	at java.lang.reflect.Method.invoke(Method.java:507)

12:12:01.927 Error AndroidRuntime 7369	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)

12:12:01.928 Error AndroidRuntime 7369	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)

12:12:01.928 Error AndroidRuntime 7369	at dalvik.system.NativeStart.main(Native Method)

12:12:01.928 Error AndroidRuntime 7369 Caused by: java.lang.NumberFormatException: unable to parse '' as integer

12:12:01.928 Error AndroidRuntime 7369	at java.lang.Integer.parseInt(Integer.java:362)

12:12:01.928 Error AndroidRuntime 7369	at java.lang.Integer.parseInt(Integer.java:332)

12:12:01.928 Error AndroidRuntime 7369	at com.android.settings.UsbSettings.onCreate(UsbSettings.java:82)

12:12:01.928 Error AndroidRuntime 7369	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)

12:12:01.928 Error AndroidRuntime 7369	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)

12:12:01.928 Error AndroidRuntime 7369	... 11 more

12:12:01.951 Error 743 Dumpstate > /data/log/dumpstate_app_error

I have attached /data/log/dumpstate_app_error for debugging purpose. I'm not a Java programmer, sigh!

Sorry for this long post!