Download and Install Android SDK
1. Installjava JDK from here
2. Download the Android ADT bundle from here
3. Extractthe zip file to c:\Android
4. Soyou will have a directory structure as follows
C:\Android\adt-bundle-windows\sdk
C:\Android\adt-bundle-windows\eclipse
5. Addc:\Android\adt-bundle-windows\sdk\platform-tools to PATH environment variable
6. Addc:\Android\adt-bundle-windows\sdk\ tools to PATH environment variable
7. Downloadand install latest Google USB Driver for windows here
Setup Android device
1. Onandroid device, open Settings application
2. Connectandroid to the PC using USB cable
3. Navigateto Developer options
4. Checkthe “Enable USB debugging” option to enable USB debugging
5. Opencommand prompt (cmd.exe) and type “adb devices” you will see an outputsomething like below
List of devicesattached
c1607c40ebbb54f device
6. Thereare few devices that require little more than just “USB Debugging” enabledespecially the phones. Follow below steps if you don’t see your device listedand you are using a phone
a. Swipe your figure from top of the phone
b. This opens a popup window for USB options
c. Try USB option such as “Use as Mass storage” andtry “adb devices” on command line.
d. Try other USB options until you find the optionthat works
7. Ifnone of the above works try “google.com” for a solution to your connectivityissues
Download Android builds
1. Downloadlatest build from http://xx.xx.xx.xxx:8080/tms/builds/android/x.x.xx/TMS_Android.zipwhere x.x.xx stands for build version number (1.0.59)
2. TMS_Android.zipfile contains following files
· ReleaseNotes.txt – Build release notes
· xxx-debug.apk – Debug build
· xxx-release.apk – Release build
· xxx-vpn-debug.apk – Vpn only debugbuild
· xxx-vpn-release.apk – Vpn onlyrelease build
Install Android build
1. Opencommand prompt (cmd.exe)
2. Checkif your device is connected with “adb devices” and verify your device is listed
3. Type“adb install xxx-debug.apk”
4. Ifyou already installed the app, you need to uninstall it first using “adbuninstall com.xxx.android.tms” command or settings application on thedevice
View Log Outputs
There are many ways you can view Android Logcat outputs usethe one you are most comfortable with. Below are some popular ways of gettingandroid logs
- From command line “adb logcat”
- Run ddms tool and select your device
- Run monitor tool
- To view the logs on device, install “CatLog”application using “Google play” and run it.
- Use eclipse
You can create filter to view only logs from xxx application.
If you are using DDMS/Monitor/Eclipse,
1. Clickon “+” button on the left pane
2. Onthe “Logcat Message Filter Settings” dialog provide a name for your filter
3. Type“com.xxx.android.tms” on “by Application Name” field
4. Click“OK” to create a new filter
5. Nowyou can select the filter on the left pane and view only xxx log messages.
Catlog application and “adb logcat” also allow you to setupfilters you can explore them if you want. I would recommend using one of DDMS/Monitor/Eclipse.