java.lang.RuntimeException: Unable to start activity ComponentInfo{bdapps.ujsag_frisshirekatelefonodon/bdapps.ujsag_frisshirekatelefonodon.MainActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean

  1. 0

    Android: When I try to access Boolean SharedPreference, it returns error about casting string to boolean

    Stack Overflow | 3 months ago | Dániel László Bertalan
    java.lang.RuntimeException: Unable to start activity ComponentInfo{bdapps.ujsag_frisshirekatelefonodon/bdapps.ujsag_frisshirekatelefonodon.MainActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  2. 0

    Weird exception: Cannot cast String to Boolean when using getBoolean

    Stack Overflow | 4 years ago | La bla bla
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  3. 0

    Android App Development, Shared Preferences getBoolean Problems

    Stack Overflow | 1 year ago | Larry Patrizio
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mobiquitynetworks.www.mobiquitymall/com.mobiquitynetworks.www.mobiquitymall.preferences_page}: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

    Stack Overflow | 8 months ago | user1051505
    java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
  6. 0

    java.lang.RuntimeException: Unable to start activity ComponentInfo{net.kindows.chitchat/net.kindows.chitchat.LoginActivity}: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Boolean

    GitHub | 7 months ago | dmsherazi
    java.lang.RuntimeException: Unable to start activity ComponentInfo{net.kindows.chitchat/net.kindows.chitchat.LoginActivity}: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Boolean

  1. martyn 1 times, last 8 months ago
  2. faisalmohd83 5 times, last 8 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
    SharedPreferencesImpl.getBoolean
    1. android.app.SharedPreferencesImpl.getBoolean(SharedPreferencesImpl.java:260)
    1 frame