getFileUriAboveApi24
Get the uri by file.
Please register a provider in AndroidManifest.xml. For example:
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths" />
</provider>
Content copied to clipboard
Parameters
authority
The authority of a FileProvider defined in a