Pavan Santhosh
Pavan Santhosh

Reputation: 72

Permissions in android for reading and writing storage

I am trying to access audio files.

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

are these two lines enough in the Manifest file for file permissions for all android versions?.
I watched some tutorials some of them are checking permissions in their Java classes. Someone please explain what are those.

Upvotes: 0

Views: 178

Answers (1)

chand mohd
chand mohd

Reputation: 2550

are these two lines enough in the Manifest file for file permissions for all android versions?

No they wont be enough as in marshmallow api 26 or higher you will need to give permission at run time

Upvotes: 1

Related Questions