π I write articles on http://medium.com/@rohitss/
β‘οΈ more blog posts...
Convenient Uncaught-Exception Handler Library For Testers and Developers. Copy, Share, Email, Save crash logs easily.
License: Apache License 2.0
π I write articles on http://medium.com/@rohitss/
β‘οΈ more blog posts...
In versions previous to Android 8, this works fine, I've just seen the problem in Android >= 8, API 26
Nothing better than the self UCEHandler log...
`***** UCE HANDLER Library
***** by Rohit Surwase
***** DEVICE INFO
Brand: samsung
Device: greatlte
Model: SM-N950F
Manufacturer: samsung
Product: greatltexx
SDK: 26
Release: 8.0.0
***** APP INFO
Version: 1.0.0 Alpha 1.0
Installed On: 2018-12-17 06:00:53
Updated On: 2019-01-09 18:00:16
Current Date: 2019-01-23 12:39:50
***** ERROR LOG
android.os.FileUriExposedException: file:///storage/emulated/0/AppErrorLogs_UCEH/MYAPP_Error-Log_2019-01-23_12%3A39%3A44.txt exposed beyond app through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1958)
at android.net.Uri.checkFileUriExposed(Uri.java:2356)
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:944)
at android.content.Intent.prepareToLeaveProcess(Intent.java:10480)
at android.content.Intent.prepareToLeaveProcess(Intent.java:10486)
at android.content.Intent.prepareToLeaveProcess(Intent.java:10465)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1616)
at android.app.Activity.startActivityForResult(Activity.java:4564)
at android.app.Activity.startActivityForResult(Activity.java:4522)
at android.app.Activity.startActivity(Activity.java:4883)
at android.app.Activity.startActivity(Activity.java:4851)
at com.rohitss.uceh.UCEDefaultActivity.emailErrorLog(UCEDefaultActivity.java:161)
at com.rohitss.uceh.UCEDefaultActivity.access$300(UCEDefaultActivity.java:55)
at com.rohitss.uceh.UCEDefaultActivity$5.onClick(UCEDefaultActivity.java:92)
at android.view.View.performClick(View.java:6896)
at android.widget.TextView.performClick(TextView.java:12689)
at android.view.View$PerformClick.run(View.java:26088)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6940)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
***** USER ACTIVITIES
User Activities: 2019-01-23 12:39:24: UCEDefaultActivity created
2019-01-23 12:39:24: UCEDefaultActivity resumed
***** END OF LOG *****`
it works fine on my Samsung s6 (API 24), but it doesn't work on my other Samsung s7 (API 26). Do you have any idea?
Trying to use both results Crashlytics being disabled.
2019-10-01 15:01:57.790 13787-13787/com.sti_usa.gateway.client.android I/CrashlyticsCore: Initializing Crashlytics Core 2.7.0.33
2019-10-01 15:01:57.822 13787-13787/com.sti_usa.gateway.client.android I/CrashlyticsInitProvider: CrashlyticsInitProvider initialization successful
2019-10-01 15:01:57.843 13787-13787/com.sti_usa.gateway.client.android E/UCEHandler: You already have an UncaughtExceptionHandler. If you use a custom UncaughtExceptionHandler, it should be initialized after UCEHandler! Installing anyway, but your original handler will not be called.
2019-10-01 15:01:57.848 13787-13787/com.sti_usa.gateway.client.android I/UCEHandler: UCEHandler has been installed.
I understand that this is because Crashlytics is getting it's error handler installed before Application.onCreate() is called [where UCE-Handler is activated].
Is there a workaround?
new UCEHandler.Builder(this).build();
---->>In application class
How can this be written in KOTLIN??
Hi
I have imported your libs in my apps, and do everything like the exemple, try crashing it, and the application was just frozen...
So i try with your exemple direcly, i created a new project and imported your exemple, compiled it, and was not working either...
What should i do ?
With logcat i can see that you handler has been installed and the exception has been caught, but the is just waiting, completly frozen
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.