Monday, 18 February 2013

Setting up your Android Mobile for Development

Here in this tuturial, i will guide you how to setup your android device for development. There after you will be able to comunicate with your mobile from Eclipse (or any other IDE). It will also enable you to debug your project directly on your mobile. 


There are five simple steps including,


1. Make your Application Debuggable

2. Enable USB debugging on your mobile device

3. Download & Install your device driver

4. Eclipse Deployment Target Selection Mode

5. Testing


Lets start,


1. Make your Application Debuggable

In the  AndroidManifest.xml file, add android:debuggable="true" to the <application> element.

Note: Be sure to remove this  before you build for release (your published application should usually not be debuggable).


2. Enable USB debugging on your mobile device.

Now you need to enable USB debugging on you mobile.
  • On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development.
  • On Android 4.0 and newer, it's in Settings > Developer options.
Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options


 3. Download & Install your device driver

If you have already installed your mobile driver just leave this step or if you have device driver with you install it on your computer. You can also download your device driver from internet. Below is the list of vendors and their official downlaod links.
OEMDriver URL
Acerhttp://www.acer.com/worldwide/support/mobile.html
alcatel one touchhttp://www.alcatel-mobilephones.com/global/Android-Downloads
Asushttp://support.asus.com/download/
Dellhttp://support.dell.com/support/downloads/index.aspx?c=us&cs=19&l=en&s=dhs&~ck=anavml
Foxconnhttp://drivers.cmcs.com.tw/
Fujitsuhttp://www.fmworld.net/product/phone/sp/android/develop/
Fujitsu Toshibahttp://www.fmworld.net/product/phone/sp/android/develop/
Garmin-Asushttps://www.garminasus.com/en_US/support/pcsync/
Hisensehttp://app.hismarttv.com/dss/resourcecontent.do?method=viewResourceDetail&resourceId=16&type=5
HTChttp://www.htc.com .
Huaweihttp://www.huaweidevice.com/worldwide/downloadCenter.do?method=index
Intelhttp://www.intel.com/software/android
KT Techhttp://www.kttech.co.kr/cscenter/download05.asp
Kyocerahttp://www.kyocera-wireless.com/support/phone_drivers.htm
Lenovohttp://developer.lenovomm.com/developer/download.jsp
LGEhttp://www.lg.com/us/mobile-phones/mobile-support/mobile-lg-mobile-phone-support.jsp
Motorolahttp://developer.motorola.com/docstools/USB_Drivers/
Pantechhttp://www.isky.co.kr/cs/software/software.sky?fromUrl=index
Pegatronhttp://www.pegatroncorp.com/download/New_Duke_PC_Driver_0705.zip 
Samsunghttp://www.samsung.com/us/support/downloads
Sharphttp://k-tai.sharp.co.jp/support/
SK Telesyshttp://www.sk-w.com/service/wDownload/wDownload.jsp
Sony Mobile Communicationshttp://developer.sonymobile.com/downloads/drivers/
Teleepochhttp://www.teleepoch.com/android.html
Yulong Coolpadhttp://www.yulong.com/product/product/product/downloadList.html#downListUL
ZTEhttp://support.zte.com.cn/support/news/NewsDetail.aspx?newsId=1000442

4. Deployment Target Selection Mode

By default android automaticaly choose preffered emulator (AVD) to launche/debug our application instead of your mobile device. So we need to know how to select our mobile device instead of emulator,

Right Click on your project> Run as > Select Run Configurations > select Target Tab 


Select Always prompt to pick device instead of automatically pick.


5. Testing


Here you go, run/debug your app in eclipse. Select your device from device list and press ok. 

Your Application will be launched on your phone & you will be able to debug and see the output on your android device.



Thats all for the moment, In comming days I will Post more related topics for Android Development. Rigt now setup you mobile and debug your first app on your device.


Looking forward for your feedback& comments, Thanks.





No comments:

Post a Comment