android - skip permission to connect to usb Accessory -


i don't want take permission connect usb accessory want connect specific usb accessory. possible . have read on android.com follows

note: if application uses intent filter discover accessories they're connected, >automatically receives permission if user allows application handle intent. if not, >you must request permission explicitly in application before connecting accessory.

so possible so. please help.


thanks gaurav

you can listen intent code:

usbaccessory accessory = (usbaccessory) intent.getparcelableextra(usbmanager.extra_accessory); 

however there information must included in manifest:

http://developer.android.com/guide/topics/connectivity/usb/accessory.html#manifest

this allow filter devices based on number of attributes.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -