Bop music player: Don't able to play songs form file manager

in utopian-io •  6 years ago 

Project Information

Expected behavior

I expected that I can play my desired song from the file manager using this music player without getting any trouble.

Actual behavior

The app is crashing when I try to play music from the file manager.

How to reproduce

  1. Go to your phone's default file manager.
  2. Choose a music file
  3. Then open that file with Bop music player
  4. See error
Informations
  • Browser/App version: Bop music player v1.2
  • Operating system: Android 6.0.1

Recording Of The Bug

GitHub Account

https://github.com/sagorahmed
The submitted issue is here

Logcat

03-22 17:55:06.460 11309 11309 D AndroidRuntime: Shutting down VM

03-22 17:55:06.460 11309 11309 E AndroidRuntime: FATAL EXCEPTION: main

03-22 17:55:06.460 11309 11309 E AndroidRuntime: Process: com.sahdeepsingh.Bop, PID: 11309

03-22 17:55:06.460 11309 11309 E AndroidRuntime: java.lang.StringIndexOutOfBoundsException: length=6; regionStart=0; regionLength=-1

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at java.lang.String.startEndAndLength(String.java:298)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at java.lang.String.substring(String.java:1087)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at com.sahdeepsingh.Bop.c.a.a(Unknown Source)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at com.sahdeepsingh.Bop.Activities.SplashScreen$a.a(Unknown Source)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at com.sahdeepsingh.Bop.Activities.SplashScreen$a.onPostExecute(Unknown Source)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at android.os.AsyncTask.finish(AsyncTask.java:651)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at android.os.AsyncTask.access$500(AsyncTask.java:180)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:668)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:102)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:148)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:7325)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)

03-22 17:55:06.460 11309 11309 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
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 @sagorahmed, thanks for making this contribution

I can see the PO has acknowedged the report. Your post has a few spelling mistakes, you should try always cross check your posts for spelling errors before posting. This will make your posts easier to understand and follow.

I like that you provided a log cat. Good job!

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 @sagorahmed!

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, @sagorahmed!

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!