Hacker News new | ask | show | jobs
by H1Supreme 2641 days ago
> Reading from the content:// URI is a little different than from a file://

I haven't found the reading part to be different, but getting the uri has changed from Uri.fromFile() to their FileProvider package. Which, requires quite a bit of setup in comparison.

To be fair, it's documented well on the Android developer site.

1 comments

But there are some APIs that don't work, e.g. ExifInterface (that you need to properly process image orientation) can only read from InputStream starting with r24, and you need access to the raw File before that [0].

[0] https://developer.android.com/reference/android/media/ExifIn...