title: How to pass file descriptor from UsbDeviceConnection to native code on Android?
body: <p>According to the docs <a href="http://developer.android.com/reference/android/hardware/usb/UsbDeviceConnection.html#getFileDescriptor()" rel="nofollow">http://developer.android.com/reference/android/hardware/usb/UsbDeviceConnection.html#getFileDescriptor()</a> returns file descriptor which can be used in native code. How can i pass it to native code (as to child process or via JNI)?</p>