Back to project page Xbox360CollectorsPlace.
The source code is released under:
MIT License
If you think the Android project Xbox360CollectorsPlace 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.xboxcollectorsplace; /*from www . jav a 2s. co m*/ import android.app.Application; import android.content.Context; /** * Class used to recover the Application context anywhere in the code */ public class App extends Application { //------------------------------------------------------------------------- ATTRIBUTES*/ private static Context _context = null; //------------------------------------------------------------------------- ON CREATE*/ public void onCreate() { super.onCreate(); _context = this.getApplicationContext(); } //------------------------------------------------------------------------- PRIVATE METHODS*/ public static Context getContext() { return _context; } }