Questions tagged [android-host-api]

3 questions
4
votes
1 answer

Android USB Host API - how to find driver for USB (Prolific) communication

UPDATE 2: I have tested with FTDI chip by shorting its IN and OUT pins. The controlTransfer() always returns 0, bulkTransfer() - Write returns length of data sent and bulkTransfer() - Read returns whatever data was sent. Does anybody know how or…
user427969
  • 3,836
  • 6
  • 50
  • 75
1
vote
1 answer

Is it possible to send Sms from android phone using adb protocol

I want to send SMS from android phone connecting to my computer using USB. I am suing usb4Java library. I have accessed the phone and send adb commands to phone according to the link usb4java-javax-examples. Here is the code and output. public…
Basit
  • 8,426
  • 46
  • 116
  • 196
1
vote
0 answers

UsbDeviceConnection.controlTransfer() failing when trying to communicate with Arduino UNO

In spite of having claimedInterfaced, having correct permissions etc, when controlTransfer() is called it returns -1. Logcat shows nothing interesting. I'm using this code as a guide. Looking at the source, here and here, I know that the device is…
nishantjr
  • 1,788
  • 1
  • 15
  • 39