Coder Social home page Coder Social logo

crashexcptioner's Introduction

CrashExceptioner License Download

全局异常捕获器,带默认app错误信息页,一行代码集成,中、英两种翻译

基于https://github.com/ACRA/acra 调整而来,方便使用,感谢ACEA的贡献

导入:

你的app/build.gradle中加入以下的代码

dependencies {
    ...
    compile 'com.jwkj:CrashExceptioner:v2.0.3'
 }

温馨提示:如果你想修改默认错误页面的ui,建议你下载源码,以module方式引入项目

用法

在你的Application的onCreate中加入

public class YourApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
         ...
        CrashExceptioner.init(this);//最好放在onCreate方法的最后
        //CrashExceptioner.setShowErrorDetails(false);//设置不显示详细错误按钮,默认为true
    }
}

TODO

  • 可定制默认错误页UI
  • 支持更多语言
  • 可自定义错误页面

版本记录

2.0.3

  • 【优化】修改默认错误页面的背景色为白色
  • 【新增】提供设置是否显示“查看错误日志”按钮的接口(默认是true)

2.0.2

  • 【修复】支持minSdk为11

2.0.1

  • 【发布】正式发布

crashexcptioner's People

Contributors

huangdali avatar

Stargazers

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

Watchers

 avatar

crashexcptioner's Issues

无限重启啊

哥们你这个捕获到奔溃异常直接无限重启...

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.