Wednesday, January 2, 2013

[android-developers] Sluggish UI response

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!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate