Time tm = new Time();
tm.setToNow();
tvs.setText(R.string.failtry);
- tvs.append(tm.format(" %d/%m/%Y %H:%M:%S"));
+ tvs.append(tm.format(" %d/%m/%Y %H:%M"));
}
if (managewifi) {
boolean wifion = wifiman.setWifiEnabled(false);
tvt = (TextView)findViewById(R.id.time);
tvd = (TextView)findViewById(R.id.date);
tvs = (TextView)findViewById(R.id.timestamp);
- ut = new UpdateTarget[] {
- new UpdateTarget((TextView)findViewById(R.id.location),
- new PhoneLog(res, store)),
- new UpdateTarget((TextView)findViewById(R.id.phonecall),
- new LastLocation(res, store))
- };
- Log.v(TAG, "created UI, about to start update task");
- mHandler.post(updateClock);
- mHandler.post(updateCal);
- mHandler.post(updateInfo);
- Log.v(TAG, "created UI, update task created");
}
/** Called when reactivated */
} else {
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
+ ut = new UpdateTarget[] {
+ new UpdateTarget((TextView)findViewById(R.id.phonecall),
+ new PhoneLog(res, store)),
+ new UpdateTarget((TextView)findViewById(R.id.location),
+ new LastLocation(res, store))
+ };
+ Log.v(TAG, "created UI, about to start update tasks");
+ mHandler.post(updateClock);
+ mHandler.post(updateCal);
+ mHandler.post(updateInfo);
+ Log.v(TAG, "created UI, update tasks created");
}
/** Called when put to background */
public void onPause() {
super.onPause();
Log.v(TAG, "going background");
+ resetInfo.run();
}
/** Called when the activity is destroyed. */