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
votes
1 answer

How can I implement Camera2 API for external usb camera?

I am trying to create an application for tablet which uses external camera. It should capture and re-capture image as well as save image. I tried implementing third party libraries like libuvccamera but it is not detecting any camera. Which other…
Roshni Patel
  • 21
  • 1
  • 5
-1
votes
2 answers

Can you send notification between Android Emulator device and USB connected real device in Android Studio for demonstration purpose with database?

I want to make an app that has two accounts and mutual database. I want to send notification from the first to the second account in real time. Is this possible?
M.P.
  • 21
  • 1
  • 5
-1
votes
1 answer

Connect android device to computer with usb and send data(string,int)

System is like that, android device is pluged to macintosh with usb cable. And in my android application, i want to send data (a line of string,int, it does not matter) to my computer. How can i do that ? Is it possible ? Do i need an application…
Can Can
  • 49
  • 1
  • 5
-2
votes
1 answer

Android usb host mode

I apologize, I recently asked a question that was not received well due to the inaccuracy of describing my problem. I have edited my question. I am a beginner trying to develop an app that utilizes usb host. I have read through the USB Host|Android…
Trapper Davis
  • 75
  • 1
  • 1
  • 9
-2
votes
1 answer

Is there a way to get the Vendor ID of charger of the Android phone?

I'm thinking about an App to provide security for Android Phones. My idea is to save the vendor ID or some sort of unique ID of the USB Charger. It'll act as a paired device. Then the charger will be authorized. If the phone is charged with…
Praveen Kumar
  • 547
  • 1
  • 7
  • 33
1 2 3 4 5 6 7
8