Add lots more skeleton

This commit is contained in:
bspeice
2013-10-09 19:39:20 -04:00
parent e0f029f387
commit 9fc974402b
4 changed files with 89 additions and 91 deletions

View File

@ -1,13 +1,8 @@
package com.uncc.gameday.activities;
import java.util.List;
import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException;
import twitter4j.TwitterFactory;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import com.uncc.gameday.R;
@ -20,12 +15,23 @@ public class Home extends MenuActivity {
setContentView(R.layout.activity_home);
Context ctx = getApplicationContext();
this.onFirstRun(ctx);
}
protected void onFirstRun(Context ctx) {
SharedPreferences settings = this.getPreferences(MODE_PRIVATE);
if (settings.getBoolean("FIRST_RUN", true)) {
// First run code
Editor editor = settings.edit();
editor.putBoolean("FIRST_RUN", false);
editor.commit();
}
}
private void getRecentAlerts() {
// Responsible for discovering what the most recent alerts are and showing them.
// Likely should be implemented by querying a local DB of alerts, grabbing recent 20.
new AlertFetcher().fetchAlerts();
}
}