mirror of
https://github.com/bspeice/UNCCGameDay
synced 2025-07-05 15:55:08 -04:00
Add lots more skeleton
This commit is contained in:
@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user