Bajrang Asthana wrote:
> HI All,
>
> I have a requirement where I need to update text of TextView  at regular
> interval of time( say in each 1 sec). I am doing this with help of handler
> but it is decreasing performance of overall UI widgets.
>
> I am doing following thing-
>
> Handler handler=new Handler();
> >
> > UpdateTasK implements Runnable{
> >
> > void run(){
> > //background calculation
> > handler.postDelayed(this, 1000);
> > }
> > }
> >
>
> Please do suggest.
>
> Thanks!


probably your:

//background calculation

takes too long - you may need to do it in a background thread

pskink

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to