java.lang.ClassCastException: android.text.SpannableString cannot be cast to java.lang.String

GitHub | galadril | 8 months ago
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

    java.lang.ClassCastException: android.text.SpannableString cannot be cast to java.lang.String

    GitHub | 8 months ago | galadril
    java.lang.ClassCastException: android.text.SpannableString cannot be cast to java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.text.SpannableString cannot be cast to java.lang.String

      at nl.hnogames.domoticz.ServerListSettingsActivity$2.onItemClick()
    2. nl.hnogames.domoticz
      ServerListSettingsActivity$2.onItemClick
      1. nl.hnogames.domoticz.ServerListSettingsActivity$2.onItemClick(ServerListSettingsActivity.java:122)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.widget.AdapterView.performItemClick(AdapterView.java:303)
      2. android.widget.AbsListView.performItemClick(AbsListView.java:1151)
      3. android.widget.AbsListView$PerformClick.run(AbsListView.java:3065)
      4. android.widget.AbsListView$3.run(AbsListView.java:3878)
      5. android.os.Handler.handleCallback(Handler.java:739)
      6. android.os.Handler.dispatchMessage(Handler.java:95)
      7. android.os.Looper.loop(Looper.java:135)
      8. android.app.ActivityThread.main(ActivityThread.java:5538)
      8 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
      2 frames