Re: [android-developers] Re: UI getting slow on video playing

2012-12-19 Thread Shashidhar
Below is the async task I am using to update the UI private class DisplayTask extends AsyncTaskVoid, Void, Void { public boolean isStopped = false; @Override protected Void doInBackground(Void... params) { try { while (!isStopped) { try {

Re: [android-developers] Re: UI getting slow on video playing

2012-12-19 Thread skink
Shashidhar wrote: Below is the async task I am using to update the UI private class DisplayTask extends AsyncTaskVoid, Void, Void { public boolean isStopped = false; @Override protected Void doInBackground(Void... params) { try { while (!isStopped) {

Re: [android-developers] Re: UI getting slow on video playing

2012-12-19 Thread Shashidhar
In fact, the first thing I tried was the Handler approach, but it also had the same problem. Hence, I changed it to async task. On Wed, Dec 19, 2012 at 5:52 PM, skink psk...@gmail.com wrote: Shashidhar wrote: Below is the async task I am using to update the UI private class

Re: [android-developers] Re: UI getting slow on video playing

2012-12-19 Thread skink
Shashidhar wrote: In fact, the first thing I tried was the Handler approach, but it also had the same problem. Hence, I changed it to async task. I'm using surface view with handlers and its working like a charm pskink -- You received this message because you are subscribed to the

Re: [android-developers] Re: UI getting slow on video playing

2012-12-19 Thread Shashidhar
I am not running the app on a mobile phone or a tablet. I am running it on a smart android decive which has HDMI output and you can connect it to TV and see the UI on the TV. Can the processing speed limitation of the device be the reason for slow UI updates?? On Wed, Dec 19, 2012 at 6:44 PM,

Re: [android-developers] Re: UI getting slow on video playing

2012-12-19 Thread bob
Why don't you not start the video and see if it updates once a second? On Wednesday, December 19, 2012 9:08:26 AM UTC-6, shashidhar wrote: I am not running the app on a mobile phone or a tablet. I am running it on a smart android decive which has HDMI output and you can connect it to TV