I've a requirement where I've send some command to Raspberry Pi to request some data and Pi will send data back to Android app.
I want to achieve this using USB communication. I've tried creating a broadcast receiver with permission <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"/>
, but android app is not able to detect the Pi because PI is in host mode and android device is in client mode.
Is there any other way to achieve this ?