[android-developers] How can I release USB resources after using 'controlTransfer()' method of UsbDeviceConnection?

2015-06-15 Thread 김태남
I had a permission to use 'controlTransfer()' method of UsbDeviceConnection with USB audio device that is connected to Android Host device. I controlled USB audio device with 'controlTransfer()' and then I released all of USB resources like below. if (mUsbDevConnection != null) { if (mUsbIn

Re: [android-developers] Samsung Note issue - SpannableStringBuilder;; SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length

2015-06-15 Thread Justin Anderson
SpannableStringBuilder;; SPAN_EXCLUSIVE_EXCLUSIVE spans cannot have a zero length My guess would be that you are trying to set a span on an empty string. Don't do that. :-) On Thu, Jun 4, 2015, 11:30 PM Rakesh Jha wrote: > Hi, > > i'm facing this error since 3-4 days, what ever solution I got i

Re: [android-developers] Bonjour Browsing

2015-06-15 Thread Justin Anderson
What have you tried so far? On Thu, Jun 11, 2015, 5:14 AM Raghavendra Rao wrote: > Can anybody help me on how can implement "listing all the Bonjour Service > with in the WiFi Vicinity" > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" grou

[android-developers] Re: Is runOnUiThread() ever 'safe' to call? If not why is it not deprecated?

2015-06-15 Thread codeguru
The only use case I have used for calling `runOnUiThread()` is in my test suite when I need access to UI components after instrumenting some user interactions. In this case, I use the similar `Instrumentation.runOnMainSync()`. Since this call is synchronous, it might not have the same issues wh