-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileUriExposedException #2
Comments
is it possible to share trace in any case i'll look into this |
You are using a file uri to open the log file. CrashReporter/crashreporter/src/main/java/com/balsikandar/crashreporter/ui/LogMessageActivity.java Line 30 in 5cfdaa9
This is not allowed on Android 7+ anymore: |
Was this fixed in the library |
How to fix Create an xml file(Path: res\xml) provider_paths.xml Add a Provider in AndroidManifest.xml
If you are using androidx, the FileProvider path should be: android:name="androidx.core.content.FileProvider" and replace Uri uri = Uri.fromFile(fileImagePath); Uri uri = FileProvider.getUriForFile(MainActivity.this, BuildConfig.APPLICATION_ID + ".provider",fileImagePath); intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); |
Got the same issue (V1.1.0 on OS 9.0) :
|
when try to make share we got this exception ...
android 8.0 ...it will occur on 7.0 also with build target 25.0.3
The text was updated successfully, but these errors were encountered: