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
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

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

    Stack Overflow | 8 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 | 5 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 | 1 year 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 | 12 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 1 year ago
  2. faisalmohd83 5 times, last 1 year 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