Sunday, July 14, 2013

Detect smart phone for Eclipse under Ubuntu

Although the emulator, it's better to test the Android application in the phone, here is the method to connect android smart phone with the computer and be recognized by eclipse.

$ lsusb
For SONY XPERIA, a line of information like this will show up:
Bus 003 Device 003: ID 0fce:e17c Sony Ericsson Mobile Communications AB

$sudo gedit /etc/udev/rules.d/51-android.rules:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", ATTRS{idProduct}=="5156", MODE="0666"

$sudo restart udev: restart device manager

$adb kill-server
$adb start-server :   restart android service

$adb devices:  show the device list

sometimes, after the configuration, the phone is still not recognized. Try to restart Eclipse, disconnect and reconnect the usb, that would be helpful.

No comments:

Post a Comment