Java Code Examples for com.tencent.bugly.crashreport.CrashReport#testJavaCrash()

The following examples show how to use com.tencent.bugly.crashreport.CrashReport#testJavaCrash() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MyApplication.java    From Android-Tech with Apache License 2.0 5 votes vote down vote up
@Override
public void onCreate() {
    super.onCreate();

    // 最简单的初始化,Bugly2.0及以上版本还支持通过“AndroidManifest.xml”来配置APP信息
    // CrashReport.initCrashReport(getApplicationContext(), "注册时申请的APPID", false);
    CrashReport.initCrashReport(getApplicationContext(), "900029763", false);

    // 测试crash
    CrashReport.testJavaCrash();
}
 
Example 2
Source File: CrashHelper.java    From GithubApp with Apache License 2.0 4 votes vote down vote up
public static void testCrash() {
    CrashReport.testJavaCrash();
}
 
Example 3
Source File: MainActivity.java    From Bugly-Android-Demo with Apache License 2.0 4 votes vote down vote up
public void testJavaCrash(View view){
    CrashReport.testJavaCrash();
}