Is there any permission required to play song in android marshmallow?

10,498

Solution 1

Look at the logcat to see what is the error. Have you add the internet and the storage permission at run time? Check here if you have done it right. https://developer.android.com/training/permissions/requesting.html

Solution 2

It Requires Storage Permission at runtime. Open your App from setting and in Permission see the Require Permissions. On the Permission from there and Run Again. Then give the runtime permission for Marshmallow. Else check the Log for more error.

Share:
10,498
Urvashi Patel
Author by

Urvashi Patel

Senior Android Developer & Team Leader

Updated on July 30, 2022

Comments

  • Urvashi Patel
    Urvashi Patel almost 2 years

    I have developing an android application that needs to play song online. I am using MediaPlayer to play song. But it is working properly in all android version till Lollipop only. In marshmallow, occure problems & app crashes while play song. Is there any permission needed in marshmallow to use MediaPlayer ?