Code Monkey home page Code Monkey logo

uce-handler's Introduction

uce-handler's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

uce-handler's Issues

Send Email Log raises an exception

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 *****`

UCE-Handler keeps Crashlytics from working

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?

Kotlin extension

new UCEHandler.Builder(this).build(); ---->>In application class

How can this be written in KOTLIN??

Application freeze and not show handler

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

  • Enzo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.