miguelbcr / RxPaparazzo

RxJava extension for Android to take images using camera and gallery and pick files up
Apache License 2.0
465 stars 53 forks source link

Permissions not working fine on Android P #100

Open miguelbcr opened 5 years ago

miguelbcr commented 5 years ago

As you can see in the screenshot if you open the app delegating the permissions to RxPermissions, in spite of granting the permissions correctly a "Permission Denied" exception is thrown when picking an image up. But if you kill the app and repeat the process it works fine 🤔

rxpaparazzo-androidP-permissions

On the other hand if you grant the permissions directly from the app's settings and then launch the app it works fine

rxpaparazzo-androidP-permissions-1

ahmed3elshaer commented 5 years ago

I think I had the same issue and when I tried to show the exception cause I got this

java.io.FileNotFoundException: /storage/emulated/0/RxPaparazzo/SAVED-20190808_0444_11666.jpg: open failed: EACCES (Permission denied)

but it works fine in the second runtime

@miguelbcr are you using emulator too? cuz I just run this on a physical device - Android P - and it didn't happen

miguelbcr commented 5 years ago

@miguelbcr are you using emulator too?

yeah, emulator. I had no chance of checking it on a real device 😕 Thanks for your comment!

ahmed3elshaer commented 5 years ago

@miguelbcr are you using emulator too?

yeah, emulator. I had no chance of checking it on a real device 😕 Thanks for your comment!

Anytime! try on a physical device and let me know the results

miguelbcr commented 5 years ago

Sure! thanks!

wodzu96 commented 5 years ago

Unfortunately I have the same issue as @ahmed3elshaer on physical device (Pixel 3). Please let me know if you are going to fix it in the near future? If you want any additional info feel free to ask. Thanks!

galmax1 commented 3 years ago

You can try .useInternalStorage(). In my case it works! But the image will not be available in the device gallery.