How to setup android device for development

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 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: