In this function: public String millisec2duration(int millisec) { final int MILLIS = 1000; Time time = new Time(); time.set(millisec * MILLIS); return time.format("%H:%M:%S"); }
millisec2duration(0); returns "00:00:00" on Emulator but returns "01:00:00" on real device. --- Here is the "bugfix-function for the real device" public String millisec2duration(int millisec) { final int MILLIS = 1000; Time time = new Time(); millisec = millisec - 3600; time.set(millisec * MILLIS); return time.format("%H:%M:%S"); } which returns "00:00:00" on real device, but "23:00:00" on emulator. Device is Samsung I5700 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en