Hi,
I have a runnable in my app that runs an animation. I would like to update
a variable so that animation varies according to the data from bluetooth.
This is the function that reads the string in the runnable:
public void Message(String Message)
> {
> String r = Message;
> try {
> myNum = Integer.parseInt(r);
> } catch(NumberFormatException nfe) {
> }
> m = (myNum/100);
> if(m>=8)
> {
> m=1;
> }
> }
This is how I am calling the runnable in the main activity:
pBar.Message(message).
It takes at least a minute to update the string in the runnable and it
happens only once. I am not able to pass a string to the runnable. Any
suggestions to pass a string to a runnable would be greatly appreciated.
Sai
--
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