I successfully wrote an app to enumerate the USB devices attached to my 
Nexus 7 - Android.    Now I want to filter  for only the type of device 
with which I am dealing.  

I think I am following the instructions here correctly:

http://developer.android.com/guide/topics/connectivity/usb/host.html

I added the same intent filter that is on the link above.  I placed the 
intent filter in my manifest file and put it inside the same activity block 
that is used to display  the enumeration of my USB devices.

I am enumerating the devices with the same code displayed on the page above.

I created a file called /TestApp3/res/xml/device_filter.xml and populated 
it with the  xml on the example page exactly as it is shown.  I would 
expect my app to no longer enumerate my device yet it does.  

Am I missing something?  

Or will the device still show in the enumeration of usb devices and the 
intent filter is simply to start my app when a device of interest to my app 
is connected?

If so, how do I know the device name for my device?  Do I just simply 
enumerate through all of the devices and grab the ones I need based off of 
product id or some other parameters?



P.S.  I am new to Android development so it is probably something "obvious" 
that I have missed. :)


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to