diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index ab21e06..cd35a53 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -5,7 +5,7 @@
android:versionName="1.0" >
alerts) {
// Remove multiple dates from the database
}
+
+ public List fetchUnread() {
+ // Fetch all unread alerts
+ return null;
+ }
}
diff --git a/src/com/uncc/gameday/alerts/AlertService.java b/src/com/uncc/gameday/alerts/AlertService.java
index b899935..25df483 100644
--- a/src/com/uncc/gameday/alerts/AlertService.java
+++ b/src/com/uncc/gameday/alerts/AlertService.java
@@ -1,6 +1,11 @@
package com.uncc.gameday.alerts;
+import java.util.List;
+
+import com.uncc.gameday.GameDay;
+
import android.app.IntentService;
+import android.content.Context;
import android.content.Intent;
public class AlertService extends IntentService {
@@ -13,6 +18,14 @@ public class AlertService extends IntentService {
@Override
protected void onHandleIntent(Intent intent) {
// Go fetch all the alerts!
+ Context appContext = GameDay.getAppContext();
+ AlertDB dbHandle = new AlertDB();
+ List alerts = dbHandle.fetchUnread();
+
+ // And then display all of them!
+ for (Alert a: alerts) {
+ a.displayNotification(appContext);
+ }
}
}