Add some more skeleton to how Alerts should be processed

Create a way to statically get the app context
This commit is contained in:
bspeice
2013-10-07 14:20:20 -04:00
parent 449678316f
commit fa28b411b5
9 changed files with 209 additions and 101 deletions

View File

@ -0,0 +1,17 @@
package com.uncc.gameday;
import android.app.Application;
import android.content.Context;
public class GameDay extends Application{
private static Context context;
public void onCreate(){
super.onCreate();
GameDay.context = getApplicationContext();
}
public static Context getAppContext() {
return GameDay.context;
}
}