dependencies {
compile 'com.fangm:crashhandler:1.0.2'
}
<dependency>
<groupId>com.fangm</groupId>
<artifactId>crashhandler</artifactId>
<version>1.0.2</version>
<type>pom</type>
</dependency>
init CrashHandler in your Application as :
CrashHandler.init(new CrashHandler.Builder(this));
or custom your CrashLogService and init by this :
CrashHandler.init(new CrashHandler.Builder(this)
.setCrashLogService(new CrashLogServiceImpl())
.setCrashTips("自定义提示信息")
.build()
);
you can custom your crashlog by implements ICrashLogService
public interface ICrashLogService {
void saveCrashLog(String log);
}
If you have a better idea , please let me know , thanks ~
Email : [email protected]