- Simple step for Emulator Enviroment. Linux system is better choice for Android Emulator.
- Download eclipse 3.7 indigo from "www.eclipse.org". Download Android SDK and NDK from "http://developer.android.com/sdk/ndk/index.html" and "http://developer.android.com/sdk/index.html". Installed Indigo and SDK as this page showed "http://wenku.baidu.com/view/662c7028647d27284b7351a2.html"
- After you installed eclipse and android-sdk, select Help->Install New Software->Add "ADT plugins - http://dl-ssl.google.com/android/eclipse/". Then install the ADT plugins.
- And also please installed following plugins, if you want to debug on eclipse.
- CDT : "CDT Juno - http://download.eclipse.org/tools/cdt/releases/indigo".
- sequoyah : "sequoyah - http://download.eclipse.org/sequoyah/updates/2.0/"
- ARM ds-5 community version : "ARM Tools - http://tools.arm.com/eclipse"
- Install android sdk image and tools : Elipse->Window->Android SDK Manager. Select the 'Tools' 'Extras' and the SDK version you want. We suggest you getting Android4.0.3 and Android2.2 package at least.
- After you finished step 4, you can create and start an android Emulator in Window->AVD Manager.
- You can use arm toolchain in NDK or android source code to build your binary and library.
- How to Debug:
- refer to "http://www.kandroid.org/online-pdk/guide/debugging_gdb.html"
- arm-linux-androideabi-gdb : $NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/
- gdbserver : $NDK/prebuilt/android-arm/gdbserver/
- NOTE : If you don't build android source code, please copy /system/bin/linker to your host and set your path after you start gdb.
- If you want to debug your binary in eclipse, you can refer to "http://blog.youkuaiyun.com/yuleslie/article/details/7249874" for configuration.