New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preferences: ClassCastException: java.lang.Integer cannot be cast to java.lang.String #698

Closed
mvysny opened this Issue Aug 25, 2016 · 2 comments

Comments

Projects
None yet
1 participant
@mvysny
Owner

mvysny commented Aug 25, 2016

java.lang.RuntimeException: Unable to create application sk.baka.aedict3.AedictApp: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4394)
    at android.app.ActivityThread.access$1300(ActivityThread.java:141)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
    at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:224)
    at android.preference.Preference.getPersistedString(Preference.java:1406)
    at android.preference.ListPreference.onSetInitialValue(ListPreference.java:278)
    at android.preference.Preference.dispatchSetInitialValue(Preference.java:1322)
    at android.preference.Preference.onAttachedToHierarchy(Preference.java:1134)
    at android.preference.PreferenceGroup.addPreference(PreferenceGroup.java:163)
    at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:104)
    at android.preference.PreferenceGroup.addItemFromInflater(PreferenceGroup.java:45)
    at android.preference.GenericInflater.rInflate(GenericInflater.java:488)
    at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
    at android.preference.GenericInflater.rInflate(GenericInflater.java:493)
    at android.preference.GenericInflater.inflate(GenericInflater.java:326)
    at android.preference.GenericInflater.inflate(GenericInflater.java:263)
    at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:269)
    at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:482)
    at android.preference.PreferenceManager.setDefaultValues(PreferenceManager.java:441)
    at sk.baka.aedict3.AedictApp.onCreate(AedictApp.java:113)
    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
    ... 10 more

@mvysny mvysny added the bug label Aug 25, 2016

@mvysny

This comment has been minimized.

Show comment
Hide comment
@mvysny

mvysny Aug 25, 2016

Owner

Fixed in Aedict 3.39.26

Owner

mvysny commented Aug 25, 2016

Fixed in Aedict 3.39.26

@mvysny mvysny closed this Aug 25, 2016

@mvysny

This comment has been minimized.

Show comment
Hide comment
@mvysny

mvysny Jan 9, 2017

Owner

Duplicate of #711

Owner

mvysny commented Jan 9, 2017

Duplicate of #711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment