java.lang.RuntimeException: Unable to start activity ComponentInfo{org.kegbot.app/org.kegbot.app.SettingsActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean

GitHub | thehijjt | 2 months ago
  1. 0

    Kegerator Cast Exception

    GitHub | 2 months ago | thehijjt
    java.lang.RuntimeException: Unable to start activity ComponentInfo{org.kegbot.app/org.kegbot.app.SettingsActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  2. 0

    Using SwitchPreference's XML Attribute android:key causes my app to crash

    Stack Overflow | 1 year ago | Bob Bamberg
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pcphoneconnections.threeandout/com.pcphoneconnections.threeandout.SettingsActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  3. 0

    addPreferencesFromResource results in ClassCastException

    Stack Overflow | 3 years ago | kyle
    java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 11#160929391

    GitHub | 1 year ago | white-gecko
    java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.s13d.photobackup/fr.s13d.photobackup.PBActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
  6. 0

    GitHub comment 11#161711470

    GitHub | 1 year ago | white-gecko
    java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.s13d.photobackup/fr.s13d.photobackup.PBActivity}: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String

  1. Stefan Braune 38 times, last 7 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassCastException

    java.lang.String cannot be cast to java.lang.Boolean

    at android.app.SharedPreferencesImpl.getBoolean()
  2. Android Platform
    PreferenceFragment.addPreferencesFromResource
    1. android.app.SharedPreferencesImpl.getBoolean(SharedPreferencesImpl.java:260)
    2. android.preference.Preference.getPersistedBoolean(Preference.java:1691)
    3. android.preference.TwoStatePreference.onSetInitialValue(TwoStatePreference.java:187)
    4. android.preference.Preference.dispatchSetInitialValue(Preference.java:1376)
    5. android.preference.Preference.onAttachedToHierarchy(Preference.java:1171)
    6. android.preference.PreferenceGroup.addPreference(PreferenceGroup.java:167)
    7. android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:108)
    8. android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:45)
    9. android.preference.GenericInflater.rInflate(GenericInflater.java:488)
    10. android.preference.GenericInflater.rInflate(GenericInflater.java:493)
    11. android.preference.GenericInflater.inflate(GenericInflater.java:326)
    12. android.preference.GenericInflater.inflate(GenericInflater.java:263)
    13. android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:272)
    14. android.preference.PreferenceFragment.addPreferencesFromResource(PreferenceFragment.java:299)
    14 frames
  3. org.kegbot.app
    SettingsActivity$KegeratorFragment.onCreate
    1. org.kegbot.app.SettingsActivity$KegeratorFragment.onCreate(SettingsActivity.java:101)
    1 frame
  4. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Fragment.performCreate(Fragment.java:2031)
    2. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863)
    3. android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
    4. android.app.BackStackRecord.run(BackStackRecord.java:834)
    5. android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)
    6. android.app.Activity.performStart(Activity.java:6005)
    7. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2288)
    7 frames