Re: [android-developers] Re: Passing a string to a runnable
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;
Thanks,
Sai
-- On Sun, Jul 8, 2012 at 11:04 AM, G. Blake Meike <blake.meike@gmail.com> 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 MeikeMarakanaThe second edition of Programming Android is now on-line: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
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