Back to project page Quiz.
The source code is released under:
GNU General Public License
If you think the Android project Quiz listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * Copyright (c) 2013, Maciej Laskowski. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. */*from w w w .j av a 2 s . co m*/ * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact mlaskowsk@gmail.com if you need additional information * or have any questions. */ package com.mlaskows.quiz; import org.acra.ACRA; import org.acra.ReportField; import org.acra.annotation.ReportsCrashes; import android.app.Application; import android.content.Context; /** * Application class gives access to {@link Context} * * @author Maciej Laskowski * */ @ReportsCrashes(formKey = "", mailTo = "mlaskowsk@gmail.com", customReportContent = { ReportField.ANDROID_VERSION, ReportField.BRAND, ReportField.PHONE_MODEL, ReportField.STACK_TRACE, ReportField.LOGCAT }, logcatArguments = { "-t", "1000", "-v", "time" }) public class QuizApplication extends Application { private static Context context; @Override public void onCreate() { super.onCreate(); QuizApplication.context = getApplicationContext(); ACRA.init(this); } /** * Returns application context. * * @return application context */ public static Context getContext() { return context; } }