Unable to update TextView on a scheduled-basis

by Chris » Wed, 11 Nov 2009 23:37:33 GMT

Sponsored Links
 Hello everyone, I'm new to Android (but not Java), so bear with me.

I'm trying to create a stopwatch-type UI, where a digital timer is
displayed and incrementing every second.  I started off creating a
textview and attempted to update this textview (TextView.setText())
using either the TimerTask class to update the view in a timer as well
as updating the view in the same thread, using a Thread.sleep(1000).

In either case, the view does not get updated. Obviously this doesn't
seem to be the proper way to go about updating a text view.  Any
suggestions on the proper way to notify the textview?



Other Threads

1. Clear TableLayout table

I wonder if anyone knows how I shall clear and update a table on a
I have a TableLayout with a few rows that I create dynamically. Then I
want to update that data with an update option from the Menu.
Do I have to create a new activity and recreate the table or is it
possible to clear it and add new rows in it



2. Need Help How to Install the Android software development kit directly

i am quiet new in the field of Android please anyone tell me that how should
i install the sdk of Android..


3. Bug in minSdkVersion or what?

4. Android power

5. How to enable FTS3 module for SQLite

6. Is there a way to request permissions from a user as you need them?

7. HW Requirements for Android based embedded device?