I'm reading data from a bluetooth barcode scanner. I
found an example and things work well. The example
though, starts a thread that pretty much just goes:
while(1){
if(check_for_data()){
handle_data();
}
}
So wouldn't this tank the CPU? Should I just
put a small sleep in there? Would all of that
checking the bluetooth socket also tank the battery?
Is there nothing to worry about and I should leave it
as it?
Thanks,
Tobiah
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.