Questions tagged [usb-otg]

USB On-The-Go is a USB (Universal Serial Bus) specification that allows a device to act as Host to simpler gadgets, such as flash drives, but then also act as a "slave" device to other Hosts, such as a personal computer.

USB On-The-Go is a specification that allows a device to act as host to simpler gadgets, such as flash drives, but then also act as a slave device to other Hosts, such as a personal computer.

See:

227 questions
3
votes
1 answer

Activity onCreate() called when connecting OTG device

I am developping an app which uses a OTG USB device. The device I am using is a USB barcodescanner which is detected by android as a keyboard. But I detected that every time I plug or unplug the OTG device, the App is restarted by calling the…
Hermandroid
  • 2,120
  • 4
  • 29
  • 35
3
votes
1 answer

What does DEFINE_IDA mean?

I was going through chipidea usb otg driver code and I see such similar definitions numerous times. static DEFINE_IDA(ci_ida); I don't get what it meant in the programming world and its purpose. Can someone please explain the same?
Adit Ya
  • 731
  • 1
  • 8
  • 19
3
votes
1 answer

How to check whether Android device supports OTG features programatically

I want to check whether a device supports OTG features programatically . I have tried a lot about this in Internet but could not find any thing . How can I do that ?
osimer pothe
  • 2,827
  • 14
  • 54
  • 92
3
votes
2 answers

How to detect whether my android device supports otg cable in android

I want to detect whether my android smart phone supports USB On-The-Go . I have searched a lot in the internet but could not find any way to do that ! I have found that there is an application "USB OTG Checker" . Here is some screenshot of that…
osimer pothe
  • 2,827
  • 14
  • 54
  • 92
3
votes
0 answers

USB redetection on running app

I am new to android. I am trying to detect usb attached to android device. When the usb is attached for first time, the specifiec app opens up.(Working fine). Now what I am tryng to do is if the app already opened,and a usb device is attached,it…
Amrit
  • 49
  • 3
3
votes
2 answers

How to detect if Android has full USB support or not?

My application uses UsbManager to communicate with USB cameras. Some devices don't have USB support. These will return null for (UsbManager)context.getSystemService( Context.USB_SERVICE ), or they will throw a NoSuchMethodError exception when…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
3
votes
0 answers

communication between two Android devices via OTG USB cable

I'm trying to connect two Android devices with API 15+ via USB OTG cable. Right now, I have one side "USB Host" based on this tutorial: http://developer.android.com/guide/topics/connectivity/usb/host.html Now I'm trying to connect to host from…
Marian Przyszedł
  • 699
  • 1
  • 9
  • 19
3
votes
2 answers

How to check usb host support on android device programmatically?

I know that it was supported starting Android 3.1, i mean "how to check hardware support"
4ntoine
  • 19,816
  • 21
  • 96
  • 220
3
votes
1 answer

USB host mode on ICS 4.0.3 - what am I missing?

I have an Android tablet running ICS 4.0.3 with kernel 3.0.8 which has 2 USB host ports, and both ports work with things like USB memory sticks, keyboards, mice and 3G dongles, so I know the hardware is functioning. I want to use the tablet with a…
kbro
  • 4,754
  • 7
  • 29
  • 40
3
votes
1 answer

Nexus7 USB host FTDI device not detected

I have a simple ATMEL micro-controller with an LED light on a board connected to a Nexus tablet through a FTDI-232 cable and a USB->micro-USB OTG cable. The device is not recognized if: 1)FTDI cable is connected to the board + micro-controller 2)The…
3
votes
2 answers

Read data from pen drive through android USB host mode

I need to read file from pen drive, my code is as follow: private static final String ACTION_USB_PERMISSION = "android.hardware.usb.action.USB_ACCESSORY_ATTACHED"; private final BroadcastReceiver mUsbReceiver = new BroadcastReceiver() { …
Calvin
  • 617
  • 1
  • 12
  • 34
3
votes
1 answer

Will an Android device with USB OTG support Infrared tranceivers?

I am looking at a variety of options to enable Infrared SIR comms between my Android devices and some external hardware. The options appear to be. 1) IOIO board or similar USB host adaptor (I would include Arduino in this) 2) Audio->Infrared as is…
Neil
  • 539
  • 3
  • 11
2
votes
1 answer

Switching USB DWC3 controller from host to device mode

I need to use an embedded Linux platform as a USB device in order to stream audio and video from a smartphone. The platform has a USB A receptacle and doesn't support OTG (USB_ID pin is not connected on the host controller). Now I try to switch from…
msmith95
  • 31
  • 2
2
votes
0 answers

Android USB OTG Device : How to turn off USB OTG Device connected to android phone

I am working on an application which makes use of OTG Sleeve(device) as an audio source. But the problem is that the OTG device does not have a de-echoing chip integrated to it. So, an echo is heard whenever a phone call is made. Is there any way to…
2
votes
0 answers

Writing file in USB Drive in android

I am trying to copy a file from my app to USB Drive(Pen drive) in Android but I am getting the Permission denied. I have already given runtime storage permission. Process: com.testapplication, PID:…
Rahul Giradkar
  • 1,818
  • 1
  • 17
  • 28