SoundSword
SoundSword copied to clipboard
Crash when resuming from background
Great Library! Thanks for sharing
Found crashing When resuming from background and playing again.
FATAL EXCEPTION: main
Process: samaritanheuristics.testapp, PID: 11209
java.lang.IllegalStateException
at android.media.MediaPlayer._reset(Native Method)
at android.media.MediaPlayer.reset(MediaPlayer.java:1724)
at com.matthewtamlin.soundsword.PlaybackService.resetMediaPlayer(PlaybackService.java:995)
at com.matthewtamlin.soundsword.PlaybackService.onAudioFocusChange(PlaybackService.java:281)
at android.media.AudioManager$ServiceEventHandlerDelegate$1.handleMessage(AudioManager.java:2158)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
I'll look into it but I can't guarantee a fix because I have very little time for these things right now. Can you provide more information about the circumstances leading to the crash?
- Start
testapp1 BIND TO SERVICESET MEDIA TO NEXT QUEUEPLAY MEDIA- minimize app (go to Home)
- resume app
- try to
BIND TO SERVICE(need to click 3 times) SET MEDIA TO NEXT QUEUEPLAY MEDIA- Crash.