views:

1700

answers:

1

i have a list which is filled with a custom Array Adapter.

I want to upload a progress bar every second, so i try to use notifyDataSetChanged in order to repaint the list but it doesn't seem to work.

A: 

If you are not calling this from the main thread try having the main thread call this function. That is usually the problem when notifyDataSetChanged isn't updating the actual screen contents.

snctln
if a call from a Handler? should it work?
xger86x
I believe so, whenever i have to update my graphics form a thread I post a message to a handler that I create in my main view.
snctln
please provide an example of how to call it from the main thread
Sheehan Alam