Share functionality crashes application
See original GitHub issueHi,
While trying to use share functionality it asks to save the image first, After successfully saved the image trying to use share functionality it crashes the application with following error stacktrace.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.burhanrashid52.photoediting, PID: 22960
java.lang.IllegalArgumentException: Failed to find configured root that contains /external/images/media/317089
at androidx.core.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:744)
at androidx.core.content.FileProvider.getUriForFile(FileProvider.java:418)
at com.burhanrashid52.photoediting.EditImageActivity.buildFileProviderUri(EditImageActivity.java:367)
at com.burhanrashid52.photoediting.EditImageActivity.shareImage(EditImageActivity.java:361)
at com.burhanrashid52.photoediting.EditImageActivity.onClick(EditImageActivity.java:335)
at android.view.View.performClick(View.java:6323)
at android.view.View$PerformClick.run(View.java:25122)
at android.os.Handler.handleCallback(Handler.java:869)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:206)
at android.app.ActivityThread.main(ActivityThread.java:6784)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:852)
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
iPhone freezes when hit share button - Apple Community
When I hit share button on any app (photo, document,notes) app freezes and doesn't work further. I can close app forcefully but that...
Read more >Reduce share extension crashes from your app with this one ...
Reduce share extension crashes from your app with this one weird trick! My app Close-up lets people capture daily selfies and create time ......
Read more >Share button crashes Android (all apps) - OnePlus Community
Any time I use the share function in any app, it crashes with the following message: "Unfortunately, Android system has stopped."
Read more >android studio - App crashes when it tries to show sharing dialog
I'm trying to implement a sharing function into my app, but it crashes every time it tries to bring up the sharing dialog....
Read more >[Social Sharing] Share crashes on android - OutSystems
Android app crashes when trying to share with the following error: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Although it does not seems to be photoeditor’s issue but i will do PR in a day or two.
@tanoDxyz Can you help on this? This might happened due to the #326 changes