- Setting up Android Development Env on Window system
- Download "Eclipse IDE for Java EE Developers" Eclipse
- from http://www.eclipse.org/downloads/
- It gives you installable ZIP file. So extract it wherever you would like your eclipse binary to stay
- If you try to run "eclipse.exe", it will not work without JDK on your system
- e.g. C:/eclipse
- Download and install JDK if you dont already have one
- http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Remember the directory for your jdk
- e.g. C:\Program Files\Java\jdk1.7.0_05
- e.g. C:\Program Files\Java\jre7
- Download and install Eclipse Plugin for Android Development (ADT Plugin) and Android SDK
- http://developer.android.com/sdk/installing/installing-adt.html
- After you restart the eclipse first time after installing ADT Plugin, it will ask you to download the latest Android SDK and ask you for the target directory. Provide the directory where you want to install it and remember it - e.g. "C:/android-sdks"
- It will install "Android SDK Platform" and "Android SDK Tools" - like debugger etc. Just follow the prompts until it completes the installations.
- Create and Run First "Hello World on Android" app using Eclipse
- http://developer.android.com/training/basics/firstapp/index.html
- http://androidarmory.blogspot.com/2011/04/creating-your-first-android-app.html
- My Example is attached
- Tips
- When you setup the Android Emulator - AVD as described in the steps given in build your first app, you might run into a problem below when you create the AVD
- "Unable to find a 'userdata.img" file for ABI armeabi to copy into the AVD folder"
- To solve this, you would need to install the package "ARM EABI * System Image" from Eclipse-->Window-->Android SDK Manager ; Basically this sets up your system target CPU ISA to ARM, letting you run your app on ARM target for android.
- When you do that, it would also give you an option to install "Intel x86 Atom System Image". Doing so would let you run your emulator for Intel Atom target for Android
- Since I have Android 2.1 phone where I want to test my app, I am also downloading Android 2.1 (API7) which I can use to develop an app that runs on Android 2.1
Saturday, June 23, 2012
Android Development using Eclipse
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment