1)
Android has
System functionality for selecting an image from the gallery ... and this system functionality returns
Uri
2) In
Android there is a system function
ImageView.setImageURI(uri) to display the image by
uri
My conclusion:
Android uses functionality with
URI in many places and uses functionality with
file path in few places
----------
Return a content URI for a given File. Specific temporary permissions for the content URI can be set with Context.grantUriPermission(String, Uri, int), or added to an Intent by calling setData() and then setFlags(); in both cases, the applicable flags are Intent.FLAG_GRANT_READ_URI_PERMISSION and Intent.FLAG_GRANT_WRITE_URI_PERMISSION. A FileProvider can only return a content Uri for file paths defined in their
meta-data element.