mercredi 22 juin 2016

Launch App with USB Accessory

How do I get my app to launch automatically when my usb accessory (AOA) is plugged in?

Thus far I added these activity text lines to the manifest.xml
< intent-filter>
< action android:name="android.intent.action.MAIN"/>
< category android:name="android.intent.category.LAUNCHER"/>
< /intent-filter>
< intent-filter>
< action android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED"/>
< /intent-filter>
< meta-data android:name="android.hardware.usb.action.USB_ACCESSORY_ATTACHED"...

Launch App with USB Accessory

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/28NkHtT
via IFTTT

Aucun commentaire:

Enregistrer un commentaire