GithubHelp home page GithubHelp logo

iamispra / catcho Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alhazmy13/catcho

0.0 2.0 0.0 656 KB

No Force close messages anymore!

Home Page: http://alhazmy13.net

License: Apache License 2.0

Java 100.00%

catcho's Introduction

Catcho


All android developer must have faced force close issue while developing an application. Here is a library to catch that errors and treat it elegantly.

Catcho will create an error page kind of mechanism in your android application. So whenever your application is crashed user will not able to see that irritating pop up dialog. Instead of that app will display a predefined view to the user.

You can report any issue on issues page. Note: If you speak Arabic, you can submit issues with Arabic language and I will check them. :)

Installation

Maven

<dependency>
<groupId>net.alhazmy13.catcho</groupId>
<artifactId>library</artifactId>
<version>1.1.0</version>
</dependency>

Gradle

dependencies {
	compile 'net.alhazmy13.catcho:library:1.1.0'
}

ScreenShots

Usage

-- Though it is very simple. Copy following line of code in your each (Activity or BaseActivity) class, just after the call of super method in your overriden onCreate method.

       Catcho.Builder(this)
       .recipients("[email protected]")
       .build();

Your Activity may look something like this…

public class AnyActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

       Catcho.Builder(this)
       .recipients("[email protected]")
       .build());

        setContentView(R.layout.main);

        // Your mechanism is ready now.. In this activity from anywhere 
        // if you get force close error it will be redirected to the Catcho.
    }
}

Custom Activity

If you want to change the default activity, then just pass the refrance of your activity to catcho and from your activity you can get CatchoError serializable object.

 Catcho.Builder(this)
       .activity(ACTIVITY.class)
       .build();
public class CustomActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom);
        CatchoError error = (CatchoError) getIntent().getSerializableExtra(Catcho.ERROR);

    }
}

Comming Soon

--

SMTP Service & Gmail SMTP Service

Theme and Resource

-- You can theme the activity by overwriting the color resources as well as you can translate it to any language

    <color name="catcho_primary">#FF9800</color>
    <color name="catcho_primary_dark">#F57C00</color>
    <color name="catcho_text_light">#FFFFFF</color>
    <color name="catcho_accent">#607D8B</color>
    <color name="catcho_text">#212121</color>

catcho's People

Contributors

alhazmy13 avatar

Watchers

James Cloos avatar Isuru Prabath 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.