Questions tagged [android-usb]

Questions regarding the implementation of USB communication on Android through one of the two supported modes: USB accessory or USB host.

Android supports a variety of USB peripherals and Android USB accessories (hardware that implements the Android accessory protocol) through two modes: USB accessory and USB host. In USB accessory mode, the external USB hardware act as the USB hosts. Examples of accessories might include robotics controllers; docking stations; diagnostic and musical equipment; kiosks; card readers; and much more. This gives Android-powered devices that do not have host capabilities the ability to interact with USB hardware.

110 questions
1
vote
0 answers

Send message from Android to Controller by OTG

I'm trying to make a communication between Android and a controller. I would like to ask how to configure the message, since I have seen different ways, but I can not know why each way. I want to send the message from Android to the controller, in…
1
vote
0 answers

How to send data from android application to mac by usb cable

I have no information about usb cable transfer so everything comes me strange. For example, i install the application on two different device. And than these two devices are connected the usb cable. When i launch the applications. I can transfer…
Can Can
  • 49
  • 1
  • 5
1
vote
0 answers

Serialize android USB incoming data

I am using this example to communicate between arduino and android, and it works well. The problem is that i would make sure all data has been received before outputting it. As it is now android will simply output everything when it is being…
JPJens
  • 1,185
  • 1
  • 17
  • 39
1
vote
3 answers

Unable to read data from usb serial device in android

I went through lots of demos and SO threads before asking this, but none of them is working for me. I am trying to read data over usb serial port using the below code. public class MainActivity extends Activity { public final String…
karan
  • 8,637
  • 3
  • 41
  • 78
1
vote
1 answer

Android list files from USB Drive

I currently have a working implementation that allows me to list USB devices, request permission for that USB device and then connect to them (mainly from http://developer.android.com/guide/topics/connectivity/usb/host.html). The code I have is the…
David
  • 2,053
  • 2
  • 16
  • 26
1
vote
0 answers

android how to register an app for "open with" selection

When connecting an external device(e.g. camera) via usb to a android smartphone you usually get a pop-up: "Choose an app for the USB device" with some different applications in the select box. So my simple question is: how can i get my own app…
1
vote
0 answers

USB printer detected, but not printing

stuck with an issue. Trying to print from my android device through a USB printer (HP 1108). The printer is detected, but when i try to print, there is no response from the printer. Please do help with any solutions. This is my…
user2889237
  • 51
  • 1
  • 3
1
vote
1 answer

Communication with usbserialhost to Android

I am new to android programming smart card detection (read). We have RFC card reader(RFID-RC522) connected to the android device using otg cable. RFC Card reader is detected using usb-serial port api, but unable to read card from RFC card reader. We…
1
vote
1 answer

How to read data from USB OTG Pen Drive in android?

I am developing an application that have used of OTG Pen Drive, so concept like read data from OTG pen drive but all user have might not be a same device. I have tested on 5-6 devices that were given me different different USB OTG path. And even on…
Mukesh Parmar
  • 941
  • 1
  • 15
  • 25
1
vote
1 answer

ioctl returns -1 in android USB bulk transfer

I have an android app which creates a connection to a USB device and have to receive data through a particular endpoint. I am handling the data transfer part in native code. The app is able to find the device, open connection and find the required…
Sampath Kumar
  • 165
  • 2
  • 10
1
vote
1 answer

Android, AOA2, USB Isochronous Audio Interface ( Streaming )

Environment: Samsung Galaxy 5, Android 4.4.2 Windows Desktop (x64) USB connected to the Android device WinUsb Implementation In accordance with this link, I am trying to receive the USB Isochronous Audio ( Streaming ) from my Samsung G5 Device, I…
NadavRub
  • 2,520
  • 27
  • 63
1
vote
1 answer

ADB command for identifying USB port

I want to know the adb command for getting USB port number of connected android device. Please help me to configure my device with android. Thanks in Advance
RajeshVijayakumar
  • 10,281
  • 11
  • 57
  • 84
1
vote
1 answer

Where to find adb_usb.ini in Linux machine

I want to make some modifications to my adb_usb.ini to detect android device how ever I could not find the same in Linux machine(Ubuntu OS). I can able to find in Windows machine under C:\Users\.android\adb_usb.ini How ever I could n't find same…
Venkatesh
  • 3,558
  • 8
  • 32
  • 38
1
vote
0 answers

Asynchronous reads in usb accessory mode

In Android, is it possible to do asynchronous reads when communicating with a peripheral using the USB accessory mode?
Daniel
  • 2,380
  • 29
  • 44
1
vote
0 answers

Location INformation from 3G Dongle android

Currently I connected 3g Dongle with my tablet through USB data cable. I want to get location information such as latitude, longitude from that dongle network. Though My tablet doesn't have Network / GPS / bluetooth support. So I can't use and by…
RajeshVijayakumar
  • 10,281
  • 11
  • 57
  • 84