You could use the NDK and expose a simple open/read/write/close interface via JNI. Then you could take it a step further by deriving new classes from InputStream and OutputStream that call the JNI methods, allowing you to use UART comms transparently wherever you can use InputStream and OutputStream. I've done that for USB host mode comms. Only catch is whether you would have read/write privileges for the tty node. For USB, I did not, because the usbfs was mounted readonly for non-root users, so I needed to root the device, which is why this wouldn't work for an app that I intend to publish. But it was fun to get it working and communicate with an external device over USB from my app!
I suspect future revisions of the Android SDK will include a USB API, especially with more android tablets coming out featuring USB Host or OTG. Serial APIs are probably less likely, but of course you could use a USB-to-serial converter for peripherals with a UART and no USB. -soup On Jan 24, 5:04 am, "pramod.deore" <[email protected]> wrote: > Hi Everybody, Does Android SDK supports any API for reading and > writing to the Linux TTY serial ports? -- 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

