private Long updatedelay = 60000L;
private Integer runningtasks = 0;
private SharedPreferences prefs;
- private CredentialStore store;
+ private PersistentStore store;
private class UpdateTarget {
private TextView tv;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
prefs = PreferenceManager.getDefaultSharedPreferences(this);
- store = new CredentialStore(prefs);
+ store = new PersistentStore(prefs);
wifiman = (WifiManager)getSystemService(Context.WIFI_SERVICE);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
tvs = (TextView)findViewById(R.id.timestamp);
ut = new UpdateTarget[] {
new UpdateTarget((TextView)findViewById(R.id.location),
- new PhoneLog(store)),
+ new PhoneLog(res, store)),
new UpdateTarget((TextView)findViewById(R.id.phonecall),
- new LastLocation(store))
+ new LastLocation(res, store))
};
Log.w(TAG, "created UI, about to start update task");
mHandler.post(updateClock);