-1
私はAndroidアプリケーションで作業しています。時間を示す時計を考えてみましょう。今は時計のようなリアルタイムを追加したいと思います。Androidで時間を実装する方法
protected void onCreate(Bundle bd) {
if (MyDebug.LOG) {
Log.d(TAG, "onCreate");
}
long time_s = System.currentTimeMillis();
super.onCreate(bd);
this.preferences = PreferenceManager.getDefaultSharedPreferences(this);
setContentView(R.layout.main_activity);
}
}
カウントダウンタイマー –
http://developer.android.com/reference/android/widget/TextClockを使用.html http://developer.android.com/reference/android/widget/AnalogClock.html – HendraWD
http://stackoverflow.com/questions/5369682/get-current-time-and-date-on-android –