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

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    Stack Overflow | 6 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 | 2 years 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 | 10 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 | 10 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 10 months ago
  2. faisalmohd83 5 times, last 10 months ago

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