You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beginning with Android 4.4 (API level 19), reading or writing files in your app's private external storage directory—accessed using getExternalFilesDir()—does not require the READ_EXTERNAL_STORAGE or WRITE_EXTERNAL_STORAGE permissions.
This leads to described behaviuor i my project with minSdkVersion = 21: ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) always returns -1 even after i explicitly granted permission -> camera cannot be opened.
The text was updated successfully, but these errors were encountered:
@arttor You need to handle run time permissions. If the function returns false it means user haven't granted permission. Your reference to the official documentation is just saying some specific external directories that do not required this permission.
Description
Not able to open camera (nothing happens and no errors in logs)
My project:
library version:
implementation 'com.asksira.android:bsimagepicker:1.1.0'
tested on emulator with API lvl 23 25 28
and real device API 28.
During debug i found that
BSImagePicker/bsimagepicker/src/main/java/com/asksira/bsimagepicker/Utils.java
Line 32 in 5549d85
always returning false. Even after i granted
WRITE_EXTERNAL_STORAGE
permission.Unfortunately, this check is mandatory to open camera.
According to official documentation
This leads to described behaviuor i my project with
minSdkVersion = 21
:ContextCompat.checkSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE)
always returns-1
even after i explicitly granted permission -> camera cannot be opened.The text was updated successfully, but these errors were encountered: