[android-developers] Re: Android ADK problem

2013-02-05 Thread Luis
fileinputstream.available() is device dependent. The way I worked around it was by having a dedicated read thread. On Saturday, July 21, 2012 4:22:29 AM UTC-5, 4ntoine wrote: Hi, evebody! I'm playing with Android ADK and have strange problem with my Galaxy Tab 2. After opening accessory i

[android-developers] Re: Android ADK problem

2012-10-29 Thread Luis
I've been having the same issue. Whenever fileinputstream.available() is used to read from the USB accessory, a java.io.IOException ioctl failed: EINVAL (Invalid argument) is thrown. No problems with writing. Did you find a solution for this? Thanks. On Saturday, July 21, 2012 4:22:29 AM