Thanks for the reply. The run() is actually executing the animation
properly. There is no problem with the animation thread. It is executing an
infinite loop. I would like to control a particular parameter of the
animation:
This is how I am passing the string to the runnable:
case MESSAGE_READ:
byte[] readBuf = (byte[]) msg.obj;
// construct a string from the valid bytes in the buffer
String readMessage = new String(readBuf, 0, msg.arg1);
pBar.Message(readMessage);
break;
I read a message from the bluetooth device and pass it to the runnable. Is
there something wrong with the way I am passing the string to the runnable?
It takes more than 60 seconds to update the animation. There is no problem
with receiving the bluetooth messages either.
Thanks,
Sai
On Sun, Jul 8, 2012 at 11:04 AM, G. Blake Meike <[email protected]>wrote:
>
> So, the method that you originally cited as the source of the problem is
> not called anywhere in the newly posted code!
>
> I'm guessing, this time, that "i" is a data member?
>
> The messaging part seems right, to me. I suspect that you problem has
> nothing to do with that.
>
> Is the loop in run() actually running? I notice it says "while (stopped)".
>
> G. Blake Meike
> Marakana
>
> The second edition of Programming Android is now on-line:
> http://shop.oreilly.com/product/0636920023005.do
>
> --
> 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
>
--
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