- long millis = System.currentTimeMillis();
- Log.v("updateClock", "executing");
+ long now = System.currentTimeMillis();
+ Time tm = new Time();
+ tm.set(now);
+ Log.v("WhereAmI", "weekday is" + Integer.toString(tm.weekDay));
+ Log.v("WhereAmI", "month is" + Integer.toString(tm.month));
+ tv.setText(
+ wday[tm.weekDay] +
+ tm.format(", %d ") +
+ month[tm.month] +
+ tm.format(" %Y") +
+ tm.format(", %H:%M%:%S"));
+ tm.second++;
+ long next = tm.toMillis(false);
+ tv.append("\n" + Long.toString(next-now+1));
+