java.lang.ClassCastException: java.lang.String cannot be cast to com.example.demoapp.device.Dev

Stack Overflow | user2940072 | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    java.lang.ClassCastException in Handler Message

    Stack Overflow | 8 months ago | user2940072
    java.lang.ClassCastException: java.lang.String cannot be cast to com.example.demoapp.device.Dev

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to com.example.demoapp.device.Dev

      at com.example.demoapp.MainActivity$MyHandler.handleMessage()
    2. com.example.demoapp
      MainActivity$MyHandler.handleMessage
      1. com.example.demoapp.MainActivity$MyHandler.handleMessage(MainActivity.java:177)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:99)
      2. android.os.Looper.loop(Looper.java:137)
      3. android.app.ActivityThread.main(ActivityThread.java:5140)
      3 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:525)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame