java.lang.ClassCastException: android.os.BinderProxy cannot be cast to gr.sport24.radio.MediaPlayerService$MediaPlayerBinder

Stack Overflow | S. Brukhanda | 9 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

    Casting android.os.IBinder causes ClassCastException once in a while

    Stack Overflow | 9 months ago | S. Brukhanda
    java.lang.ClassCastException: android.os.BinderProxy cannot be cast to gr.sport24.radio.MediaPlayerService$MediaPlayerBinder

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.os.BinderProxy cannot be cast to gr.sport24.radio.MediaPlayerService$MediaPlayerBinder

      at gr.sport24.radio.RadioManager$RadioServiceConnection.onServiceConnected()
    2. gr.sport24.radio
      RadioManager$RadioServiceConnection.onServiceConnected
      1. gr.sport24.radio.RadioManager$RadioServiceConnection.onServiceConnected(RadioManager.java:740)
      1 frame
    3. Android Platform
      ActivityThread.main
      1. android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1203)
      2. android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1220)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:135)
      6. android.app.ActivityThread.main(ActivityThread.java:5536)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Method.java)
      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:1397)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1192)
      2 frames