Bug: ACG-Player[2.6.5.3] Music stop when i minimize the app

in utopian-io •  6 years ago 

Project Information

Describe the bug

When I play music on the app and I want to listen to it while doing other things then when I minimize the app the music I was playing stopped.

To Reproduce

  1. Launch the app

  2. Play any music

  3. Minimize the app

  4. See error

Expected behavior

I expect the music continue to play underneath, and it shows as well show on the top notification bar that music is currently playing.

Screenshots

Smartphone.

  • Device: [itel]

  • OS: [6.1]

  • Version [2.6.5.3(20190531)]

Log

05-31 07:47:57.940 23665 23665 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.getScheme()' on a null object reference
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at top.geek_studio.chenlongcould.musicplayer.broadcast.ReceiverOnMusicPlay.playFromUri(SourceFile:2)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at top.geek_studio.chenlongcould.musicplayer.activity.MainActivity.receivedIntentCheck(SourceFile:6)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at top.geek_studio.chenlongcould.musicplayer.activity.MainActivity.onNewIntent(SourceFile:2)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1215)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1227)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2546)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.app.ActivityThread.performNewIntents(ActivityThread.java:2558)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2567)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.app.ActivityThread.-wrap12(ActivityThread.java)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1417)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:5452)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
05-31 07:47:57.940 23665 23665 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)```
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hi @darewealth, thanks for making this contribution

Good to know the issue was fixed. It can be seen that you opened the issue a while ago. It's a wonder you are just submitting it. Guess you might have missed it.

The logcat you provided was helpful in locating the root cause. A further analysis of the error and measures to fix it would have been useful as well. Still a good find.

I look forward to more of your reports.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @fego! Keep up the good work!

Hi @darewealth!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

Hey, @darewealth!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!