I got the vendor and product from an lsusb command. First i tried adjusting the device filter xml. I adapted the code to work for other devices. I don't have one of the missle launcher but i figured i could at least get it the USB_Device_Attached to fire. So to make things simpler i decided to forget about my project and attempt to use google's own sample code and see if i could at least make that work. No matter what i try i can't seem to get the intent to fire. I'm using a broadcast reciever that i know works (when i have it listen for other things such as the home button being pressed. For my purposes i want to be notified any time a device is attached. Ok so i'm trying to use the new usb host mode features to detect when a usb device is attached. Has anyone out there been able to get the .USB_DEVICE_ATTACHED" to work?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |