title: usb devices android, c# Xamarin
body: <p>I recently started writing on Xamarin, and I've got some problems with writing code to look at the devices attached to my host.</p>
  
  <p>I've read the SDK documentations, and all the docs are written in java. I'm trying to change java into C#, and I coded this to find the devices attached:</p>
  
  <pre><code>UsbManager manager = (UsbManager)GetSystemService (Context.UsbService);
  display.Text += " /n inizializzo il manager";
  display.Text += "numero dispositivi: ";
  display.Text += manager.DeviceList.Count;
  </code></pre>
  
  <p>With "usb manager" app I can see all the usb attached, there are 3. But with this code it appears to be 0 usb attached.</p>
  
  <p>I don't understand why.</p>