سؤال

Using this article as a guide:

Managing a Connection

It explains that in the connected thread class, the run method is constantly listening for data to read from the stream.

So if I put a log message in the loop I'd expect to see a constant feed of my message when the instance of this class is created and I start() it, however I only get the message once. If i remove the try catch block of code though then I do see a constant feed of my logcat message. Can anyone explain why this happens?

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top