Giter VIP home page Giter VIP logo

errbit-android's Introduction

Errbit Notifer for Android

Overview

The Errbit notifier for Android is designed to give you instant notification of any uncaught exceptions thrown from your Android applications.

It's based on AirBrake Notifer for Android http://loopj.com/airbrake-android/

Installation & Setup

Build the .jar and place it in your Android app’s lib/ folder.

Import the ErrbitNotifier class in your app’s main Activity.

import com.welaika.android.errbit.ErrbitNotifier;

In your activity’s onCreate function, register to begin capturing exceptions:

ErrbitNotifier.register(this, "errbit.domain.com", "your-api-key-goes-here");

Configuration

The ErrbitNotifier.register call requires a context and Airbrake/Errbit API key to be passed in, and optionally a third argument specifying the environment. The environment defaults to production if not set.

To notify Errbit of non-fatal exceptions, or exceptions you have explicitly caught in your app, you can call ErrbitNotifier.notify. This call takes exactly one argument, a Throwable, and can be called from anywhere in your code. For example:

try {
    // Something dangerous
} catch(Exception e) {
    // We don't want this to crash our app, but we would like to be notified
    ErrbitNotifier.notify(e);
}

Building from Source

To build a .jar file from source, make a clone of the errbit-android github repository and run:

ant package

This will generate a file named errbit-android.jar.

This is a fork!

Thanks a lot to James Smith that created the original version for Airbrake. Thanks!

errbit-android's People

Contributors

loopj avatar namuit avatar toggm avatar gdaniels avatar m5 avatar nikreiman avatar

Watchers

Fabian Page avatar Thomas Rawyler avatar James Cloos avatar  avatar Alwin avatar Robert Stoll avatar Mikel Cordovilla Mesonero avatar  avatar

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.