[android-developers] Re: connecting to the device using network

2011-08-13 Thread young40
You should connect your Android and Ubuntu to one network. such as 192.168.1.100 for Android, 192.168.101 for Ubuntu. Then follow these steps: 1. connect your Android devices to Ubuntu with a USB cable 2. make sure your Android is shown with command "adb devices" 3. type command "adb tcpip ",

[android-developers] App Crash while reading data from USB HID devices in Android 3.1

2011-08-08 Thread young40
I'm trying to control a USB HID devices with Android 3.1. my app always crash while reading data from the usb devices log here: 08-03 10:24:21.960: DEBUG/UsbRequestJNI(1356): init 08-03 10:24:21.960: WARN/System.err(1356): java.lang.NullPointerException 08-03 10:24:21.970: WARN/System.err(1356):

[android-developers] [Android3.1]Can't find my worked mouse in UsbManager getDeviceList()

2011-06-16 Thread young40
I have a moto Xoom with Android 3.1, and a Thinkpad USB mouse. I connect Xoom and the mouse, everything goes well, I got a cousor, click, drag works. I'm trying to List my USB devices with new APIs in Android 3.1. some codes like: UsbManager manager = (UsbManager) getSystemServi