I am testing my app on Marshmallow 6.0
and it\'s getting force closed for the android.permission.READ_EXTERNAL_STORAGE
, even if it is defined in th
In general, request needed permissions it as soon as you need them. This way you can inform the user why you need the permission and handle permission denies much easier.
Think of scenarios where the user revokes the permission while your app runs: If you request it at startup and never check it later this could lead to unexpected behaviour or exceptions.