This article will describe how to setup android device for development. The device that i used is SE Xperia Ray (ST18). Let’s check it out, i usually use Android Virtual Device (AVD) for debugging and run an apps i create. Now, i wanna use my device for debugging and run apps. First, declare in apps as “debuggable” in Android Manifest. See the screenshot below :
See at the line red light, we can do this from the Application tab when viewing the Manifest (on the right side, set Debuggable to true). Otherwise, in the
AndroidManifest.xml file, add
android:debuggable="true" to the
<application> element. Also see the screenshot below :
Next step is setup in our device. Turn on “USB Debugging” on our device. On the device, go to Settings > Applications > Development and enable USB debugging.
Also set up our device to allow installation of non-Market applications. On the device, go to Settings > Applications and enable Unknown sources.
Next, set up our system to detect our device. For SE Xperia Ray, just install PC Companion or in Hardware scan changes install USB driver, download here.
If the USB driver has been installed, when we run the apps in Eclipse, we’ll see the device status is Online. See the screenshot below :
Hopefully this article can be usefull 🙂