Domanda

Looking at dot42 - I am trying to get access to the usb port. Looking at Andoird.Hardware and Usb does not exist. Any ideas? Am I missing an assembly?

È stato utile?

Soluzione

Android.Hardware.Usb was added in API level 12 (Android 3.1). Are you sure that you have set the Android version of your project to 3.1 or higher? You can find this setting on the Android tab of the project properties. This setting corresponds to android:minSdkVersion attribute of the uses-sdk element of the Android manifest.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top