Renjith JR
Renjith JR

Reputation: 359

How to read data from usb device on android device in android?

I want to design an android application, in which it should read data from an USB device connected to it per standard timings.Can I? How?

Upvotes: 6

Views: 24163

Answers (1)

Shiv
Shiv

Reputation: 4567

You Can use USB HOST OR ACCESSORY MODE for communicating with a USB device:

Android supports a variety of USB peripherals and Android USB accessories through two modes: USB accessory and USB host.

enter image description here

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.

In USB host mode, the Android-powered device acts as the host. Examples of devices include digital cameras, keyboards, mice, and game controllers. USB devices that are designed for a wide range of applications and environments can still interact with Android applications that can correctly communicate with the device.

Like go through this link for communicating with a device in HOST mode.

Upvotes: 5

Related Questions