My content provider tries to create a file on external storage but it need to android.permission.WRITE_EXTERNAL_STORAGE
permission. I already added this permission to Manifest but if Build.VERSION.SDK_INT >= 23
Its cant create a file.
So I want to run a activity before the ContentProvider start working to get permission from user. How can I do it. Thanks.
NOTE: I'm not asking how can i get runtime permissions. How can I get permisions BEFORE running content provider. As you know content provider start working before all other activities and I cant reach ContextCompat..