/etc/profile
export JAVA_HOME=/usr/local/jdk/jdk1.7.0_67
export ANT_HOME=/usr/local/apache-ant-1.9.4
export ANDROID_HOME=/home/kq/android/adt-bundle-linux-x86_64-20140702/sdk
export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin::${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
1. install ant
download from http://ant.apache.org/
2. create android project
project : AndroidDemo
3. create android testproject
project: AndroidDemoTest
4. convert to ant project
android update project -p appcompat_v7 -n appcompat_v7 (optional , if compatible with low version, required)
android update project -p ../AndroidDemo -n AndroidDemo
android update test-project -m ../AndroidDemo -p ../AndroidDemoTest/
-----------------------------------------------------------------------------------------------------------------------------
android update project -p path -n name
-p The project's directory. [required]
-n Project name.
android update test-project -p path -m testproject
-p The project's directory. [required]
-m Directory of the app under test, relative to the test project directory. [required]
-----------------------------------------------------------------------------------------------------------------------------
5. install
open android emulator
go to AndroidDemoTest Directory
ant clean emma debug install test