diff options
Diffstat (limited to 'src/org/happysanta/gd/GDApplication.java')
-rw-r--r-- | src/org/happysanta/gd/GDApplication.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/org/happysanta/gd/GDApplication.java b/src/org/happysanta/gd/GDApplication.java new file mode 100644 index 0000000..120a5a7 --- /dev/null +++ b/src/org/happysanta/gd/GDApplication.java @@ -0,0 +1,24 @@ +package org.happysanta.gd; + +import android.app.Application; +import org.acra.*; +import org.acra.annotation.*; + +import static org.acra.ReportField.*; + +@ReportsCrashes( + formKey = "", + formUri = "http://gdtr.net/report.php", + customReportContent = {APP_VERSION_NAME, APP_VERSION_CODE, ANDROID_VERSION, PHONE_MODEL, PRODUCT, DISPLAY, STACK_TRACE, LOGCAT, USER_CRASH_DATE, INSTALLATION_ID, CUSTOM_DATA} +) +public class GDApplication extends Application { + + @Override + public void onCreate() { + super.onCreate(); + if (Global.ACRA_ENABLED) { + ACRA.init(this); + } + } + +}
\ No newline at end of file |