June 16th, 2011, 10:39 AM
|
#1 (permalink)
|
|
New Member
Join Date: Jun 2011
Posts: 2
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Send / receive data using usb to external device
Hi Guys,
I hope you could help me with this one...
I need to build a medical application that receives data from external measurement device, performs some calculations and displays a some visuals on a monitor.
We did not want to build the device from scratch thus it was decided to use some OEM Android device for that purpose.
And here is the question:
After some research I made, I understand that it is not possible to build an Android application that is able to send/receive data through device's USB because there is no such API on the java level. Yes, I know it is available on Android 3.1 and I know that there is a Google ad-on library for 2.3.4 but the problem is that OEM device we are developing for has version 2.2 or 2.1 only.
Am I wrong? Is there a way in 2.1 and 2.2 to send/receive data using device's USB? Is there another way (besides bluetooth and wifi/3g)? I can receive data from external device by emulating mouse or keyboard but regretfully I can not send data to the external device using this way.
My next option is talking with the external device using the file system by writing and reading from files, but it seems like the last and the worst way to communicate with external device.
If I am missing something or there is another way for 2.1/2.2 device PLEASE help me.
Mike
|
|
|