Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alhazmy13/Catcho
No Force close messages anymore!
https://github.com/alhazmy13/Catcho
Last synced: 6 days ago
JSON representation
No Force close messages anymore!
- Host: GitHub
- URL: https://github.com/alhazmy13/Catcho
- Owner: alhazmy13
- License: apache-2.0
- Created: 2016-04-16T12:26:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-30T11:58:42.000Z (over 7 years ago)
- Last Synced: 2024-08-16T14:34:44.474Z (4 months ago)
- Language: Java
- Homepage: http://alhazmy13.net
- Size: 641 KB
- Stars: 35
- Watchers: 8
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
- awesome-android - Catcho - No Force Close any more. (Libraries / Crash monitoring)
- awesome-android-libraries - Catcho
- awesome-android - Catcho - No Force Close any more. (Libraries / Crash monitoring)
README
# Catcho
![](https://img.shields.io/badge/Platform-Android-brightgreen.svg)
![](https://img.shields.io/crates/l/rustc-serialize.svg)
![](https://img.shields.io/badge/version-1.1.0-blue.svg)---
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**
```xml
net.alhazmy13.catcho
library
1.1.0```
**Gradle**
```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.```java
Catcho.Builder(this)
.recipients("[email protected]")
.build();```
Your Activity may look something like this…
```java
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.
```java
Catcho.Builder(this)
.activity(ACTIVITY.class)
.build();
``````java
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```xml
#FF9800
#F57C00
#FFFFFF
#607D8B
#212121
```