Back to project page RabbitEars.
The source code is released under:
MIT License
If you think the Android project RabbitEars listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.fbs.rabbitears; // w ww . ja v a 2 s . co m import android.app.Application; import android.content.Context; import android.preference.PreferenceManager; import com.activeandroid.ActiveAndroid; import com.fbs.rabbitears.helpers.ViewHelper; /** * Rabbit Ears Application */ public class RabbitEars extends Application { private static Context context; /** * Initialize static app context, initialize database, * and set default values of preference fragments */ @Override public void onCreate() { super.onCreate(); context = this; ActiveAndroid.initialize(this); PreferenceManager.setDefaultValues(this, R.xml.pref_general, false); PreferenceManager.setDefaultValues(this, R.xml.pref_feed_item, false); Config.incrementRunCount(); } /** * Get application context * @return Context app context */ public static Context getContext() { return context; } }