[XDA-University] shiftr182:
Hi all. I am looking for some assistance with a log... I running RR on P2XL. When I try to customize the battery, it fc's the settings, and not sure why. This is on a clean install, with no themes, or even apps installed, so cannot be due to themes or anything. Anyway, hoping someone can help me figure out whats going on....

This is where I see the error happening, but I dont understand what it means. I have also attached the full log.

07-31 20:38:37.272 E/AndroidRuntime(4726): FATAL EXCEPTION: main

07-31 20:38:37.272 E/AndroidRuntime(4726): Process: com.android.settings, PID: 4726

07-31 20:38:37.272 E/AndroidRuntime(4726): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.ArrayIndexOutOfBoundsException: length=3; index=-1

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2779)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2857)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.ActivityThread.-wrap11(Unknown Source:0)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1590)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.os.Handler.dispatchMessage(Handler.java:106)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.os.Looper.loop(Looper.java:164)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.ActivityThread.main(ActivityThread.java:6499)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at java.lang.reflect.Method.invoke(Native Method)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

07-31 20:38:37.272 E/AndroidRuntime(4726): Caused by: java.lang.ArrayIndexOutOfBoundsException: length=3; index=-1

07-31 20:38:37.272 E/AndroidRuntime(4726):	at com.android.settings.rr.BatterySettings.onCreate(BatterySettings.java:101)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.Fragment.performCreate(Fragment.java:2489)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1237)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2407)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2186)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2142)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2043)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:799)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at com.android.settings.SettingsActivity.switchToFragment(SettingsActivity.java:747)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at com.android.settings.SettingsActivity.launchSettingFragment(SettingsActivity.java:425)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at com.android.settings.SettingsActivity.onCreate(SettingsActivity.java:323)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.Activity.performCreate(Activity.java:7054)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.Activity.performCreate(Activity.java:7045)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)

07-31 20:38:37.272 E/AndroidRuntime(4726):	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2732)

07-31 20:38:37.272 E/AndroidRuntime(4726):	... 9 more