On 2/18/2014 5:03 PM, Trevor Page wrote:
I would expect that your "check_for_data()" is actually performing an
InputStream.read() or .read(buffer) or .read(buffer, byteOffset,
byteCount), all of which are calls that block until data is available.
While in a call that blocks, the thread won't load the CPU.

Trev

Hey, thanks, it does. I should have included the
actual code.  There is an InputStream.read() in there.
I'm a java newb, so I'll have to investigate that class
at another time.

So, I have another question then.  When doing this,
am I taxing the bluetooth connection, and if not, how
does the remote device let me know that there is more
data available?

Thanks for answering the sophomore questions.

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.

Reply via email to