mirror of
				https://github.com/mik3y/usb-serial-for-android
				synced 2025-10-31 10:27:27 +00:00 
			
		
		
		
	fix link to device_filter.xml and remove trailing whitespace in README
This commit is contained in:
		
							parent
							
								
									ccc8e8d3f0
								
							
						
					
					
						commit
						3479892809
					
				| @ -17,9 +17,9 @@ functions for use with your own protocols. | |||||||
| 
 | 
 | ||||||
| **1.** [Link your project](https://github.com/mik3y/usb-serial-for-android/wiki/Building-From-Source) to the library. | **1.** [Link your project](https://github.com/mik3y/usb-serial-for-android/wiki/Building-From-Source) to the library. | ||||||
| 
 | 
 | ||||||
| **2.** Copy [device_filter.xml](http://usb-serial-for-android.googlecode.com/git/UsbSerialExamples/res/xml/device_filter.xml) to your project's `res/xml/` directory. | **2.** Copy [device_filter.xml](https://github.com/mik3y/usb-serial-for-android/blob/master/usbSerialExamples/src/main/res/xml/device_filter.xml) to your project's `res/xml/` directory. | ||||||
| 
 | 
 | ||||||
| **3.** Configure your `AndroidManifest.xml` to notify your app when a device is attached (see [Android USB Host documentation](http://developer.android.com/guide/topics/connectivity/usb/host.html#discovering-d) for help).   | **3.** Configure your `AndroidManifest.xml` to notify your app when a device is attached (see [Android USB Host documentation](http://developer.android.com/guide/topics/connectivity/usb/host.html#discovering-d) for help). | ||||||
| 
 | 
 | ||||||
| ```xml | ```xml | ||||||
| <activity | <activity | ||||||
| @ -29,7 +29,7 @@ functions for use with your own protocols. | |||||||
|     <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> |     <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> | ||||||
|   </intent-filter> |   </intent-filter> | ||||||
|   <meta-data |   <meta-data | ||||||
|       android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"  |       android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" | ||||||
|       android:resource="@xml/device_filter" /> |       android:resource="@xml/device_filter" /> | ||||||
| </activity> | </activity> | ||||||
| ``` | ``` | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user