Описание тега android-fileprovider
FileProvider is an extension of Android's ContentProvder class, which supports easy sharing of private files between apps.
FileProvider supports easy sharing of private files between Android apps. When paired with features like grantUriPermission(String, Uri, int)
or FLAG_GRANT_READ_URI_PERMISSION
, this provider ensures that receiving apps can always open the underlying file.
Apps should generally avoid sending raw filesystem paths across process boundaries, since the receiving app may not have the same access as the sender. Instead, apps should send Uri
backed by a provider like FileProvider
.