Digital clock doesn't tick on time -- how to fix?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Digital clock doesn't tick on time -- how to fix?

Postby mathuin » Thu Jul 23, 2009 2:11 am

I added a DigitalClock to my main XML file. Here it is:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <DigitalClock android:id="@+id/clockClock" android:layout_width="fill_parent" android:layout_height="wrap_content"/>
Parsed in 0.000 seconds, using GeSHi

The digital clock displays as I had expected, but it doesn't tick in sync with the other clock on the screen, nor does it tick in sync with an every-ten-seconds event driven by a Handler. I have the same problem with my handset as with the emulator. Any idea how to fix it? If I didn't want to-the-second accuracy displayed in my app, I'd throw it out and use the other clock on the screen. Help?
Junior Developer
Junior Developer
Posts: 15
Joined: Wed Jul 15, 2009 3:10 am


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 3 guests