Private manager As UsbManager 'USB library
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
If manager.GetDevices.Length > 0 Then
Log("Something is connected")
Finding the device type will require asking the user for permission and will make it a bit more complicated.