4 ms·
> 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 f
by H1Supreme 8y 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.
- ge0rg 8y agoBut 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/ExifInterface#public-constructors_1 https://developer.android.com/reference/android/media/ExifIn...