android-easy-crash-handle
This is An Easy Android Crash Handle Lib. you can use this in your project to collect crash , you can easily store cresh to your phone or send to you server.
AECrashHandler??
Android ?????????????????????????????????????????? ?????????????????????????????????????????????
??????AECrashHandler?
- ??????????
- ????????????????????????????????
- ??Android ?????????????????????
PC ??????????????????? ???????????PC???
@echo off adb pull /storage/emulated/0/Android/data/com.xxx.mauiie/files/crash ./crash/ @exit
AECrashHandler????
??AECrashHandler
??Gradle??:
compile 'com.mauiie.aech:AECrashHandler:0.0.1'
????
1???gradle?AECrashHandler????????
2????Application?????AECrashHandler
//??????????????????????????????? 'sdcard'/Android/data/'youPackageName'/files/crash/ ,
//?SD??????????????
/data/data/'youPackageName'/crash/
//AECrashHelper.initCrashHandler(this);
AECrashHelper.initCrashHandler(this,
new AECHConfiguration.Builder()
.setLocalFolderPath(FileAccessor.getFilePathName().getAbsolutePath()) //???????????
.setReportToServer(true)
//?????????
.setSaveToLocal(true)
//?????????
.setReporter(new AECHConfiguration.IAECHReporter() {
//???????????????????????
@Override
public void report(Throwable ex) {
com.mauiie.aech.utils.LogUtil.d("???????????????????????");
}
}
).build());
??
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
????
-keep class com.mauiie.aech.*{
*;
}
????
- **QQ:**1203407263
- Email:[email protected]
License
Copyright 2016 Mauiie. Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.