mirror of
https://github.com/bspeice/UNCCGameDay
synced 2025-09-18 20:40:52 -04:00
Add some more skeleton to how Alerts should be processed
Create a way to statically get the app context
This commit is contained in:
17
src/com/uncc/gameday/GameDay.java
Normal file
17
src/com/uncc/gameday/GameDay.java
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user