You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# UsbSerialForAndroid
2
2
3
-
This is a driver library to allow your Xamarin Android or Microsoft Android app to communicate with many common USB serial hardware. It uses the [Android USB Host API](http://developer.android.com/guide/topics/connectivity/usb/host.html)
3
+
This is a driver library to allow your Microsoft Android app to communicate with many common USB serial hardware. It uses the [Android USB Host API](http://developer.android.com/guide/topics/connectivity/usb/host.html)
4
4
available on Android 3.1+.
5
5
6
6
No root access, ADK, or special kernel drivers are required; all drivers are implemented in
@@ -9,7 +9,7 @@ functions for use with your own protocols. The appropriate driver is picked base
9
9
10
10
This is a Xamarin C# port of Mike Wakerly's Java [usb-serial-for-android](https://github.com/mik3y/usb-serial-for-android) library. It followed that library very closely when it was ported. The main changes were to make the method names follow C# standard naming conventions. Some Java specific data types were replaced with .NET types and the reflection code is .NET specific. Code examples written for the Java version of the library should translate more or less faithfully to C#.
11
11
12
-
It also includes code derived from a portion of LusoVU's [XamarinUsbSerial](https://bitbucket.org/lusovu/xamarinusbserial) library. XamarinUsbSerial was a C# wrapper for the Java usb-serial-for-android. It used an older version of the usb-serial-for-android .jar file. Only the the C# code was used, the Java library is not referenced.
12
+
It also includes code derived from a portion of LusoVU's [XamarinUsbSerial](https://bitbucket.org/lusovu/xamarinusbserial) library. XamarinUsbSerial was a C# wrapper for the Java usb-serial-for-android. It used an older version of the usb-serial-for-android .jar file. Only the C# code was used, the Java library is not referenced.
13
13
14
14
The default branch has been renamed from master to main. if you have a local clone, you can run the following commands to update the name of the default branch
15
15
@@ -19,17 +19,17 @@ git fetch origin
19
19
git branch -u origin/main main
20
20
git remote set-head origin -a
21
21
```
22
-
23
-
This library currently supports Xamarin.Android, .NET 6, .NET 7, and .NET 8. The demo app currently targets .NET 8, but the code was written for Xamarin.Android. The code works with .NET 9 and an upcoming update will update the demo projects to .NET 9.
24
-
25
-
Support for Xamarin will be dropped in the next update. Microsoft has ended support for Xamarin and you can no longer support apps to the Google Play Store that were built with Xamarin.
22
+
This library supports .NET 10 and Microsoft Android. Support for Xamarin Android and previous versions of .NET have been dropped. Sample application has been replaced with a new app demo. If you need the old demo or want to support older versions of .NET, please use [verson 1.1.1](https://github.com/anotherlab/UsbSerialForAndroid/releases/tag/v1.1.1).
26
23
27
24
## Structure
28
25
29
-
This solution contains two projects.
26
+
This solution contains two projects and a slnx solution file.
30
27
31
28
* UsbSerialForAndroid - A port of the Java library usb-serial-for-android
32
-
* UsbSerialExampleApp - A Xamarin version of the example app that comes with usb-serial-for-android
29
+
* UsbSerialForAndroidDemo - A Microsoft Android version of the example app that comes with usb-serial-for-android
30
+
31
+
32
+
The original demo and the .sln format solution file are deprecated and will be removed in a subsequent update.
33
33
34
34
## Getting Started
35
35
**1.** Reference the library to your project
@@ -107,3 +107,5 @@ For more information about contributing or reporting an issue, please see [](htt
107
107
This library is licensed under the MIT License. Please see [LICENSE.txt](https://github.com/anotherlab/UsbSerialForAndroid/blob/main/LICENSE.txt) for the complete license.
108
108
109
109
Copyright 2017, Tyler Technologies. All Rights Reserved. Portions of this library are based on the [usb-serial-for-android](https://github.com/mik3y/usb-serial-for-android) and [XamarinUsbSerial](https://bitbucket.org/lusovu/xamarinusbserial) libraries. Their rights remain intact.
110
+
111
+
The icon used for the demo app was derived from [Serial to USB by Bonegolem](https://thenounproject.com/browse/icons/term/serial-to-usb/) from <a href="https://thenounproject.com/browse/icons/term/serial-to-usb/" (CC BY 3.0)
0 commit comments