Android Installation

Web Hosting
My first post is a quickie on how to get yourself started with Android development and the tools you will need to get going. So lets get started with your first basic setup for Android development.
1. Download & Install the Android SDK
a. Download the Android SDK 
b. Install/Extract the downloaded SDK
c. Go to the directory where you installed the SDK and open SDK Manager to open Android SDK and AVD Manager.
d. In AVD manager under Avaliable Packages you can see different versions of SDK’s
Select SDK versions and Development tools
e. Select SDK Platform tools and one of the version of SDK and click on install

2. Downloading Eclipse Software
Although there are lot of IDE out there Eclipse is recommended IDE which will give you best support for Android app development.
You can download Eclipse IDE from here
3. Installing Android Development Toolkit (ADT) plug-in
a. Open Eclipse s/w and under Help -> Install New Software…
b. Now you will see a window which allows you to install new plug-in
c. Click on Add button and in Name and in Location give the link and proceed with further steps.
Add plug-in Name and URL
android plug-in tools
4. Creating Sample Project
Creating a sample android project involves very few steps
a. In your Eclipse IDE go to File -> Android Project
b. Give Project Name, Select Build Target, Application Name, Package Name, Activity Name, Min SDK version and click Finish
android create new project
c. Now you can see bunch of files created in the project explorer.
Eclipse package explorer
5. Creating New Android Virtual Device (AVD)
The AVD is an emulator which provides you android hardware and software environment to test application on computer.
a. In Eclipse open SDK Manager under Windows -> Android SDK and AVD Manager
SDK AVD Manager
b. Click on New on the right side.
android virtual device
c. Give Name, Select Target give SD Card size and click on Create AVD.
android create avd
d. Now a new AVD is created with the specification you provided and Close the Android SDK and AVD Manager
6. Running the Project
Once you successfully created AVD you are ready to test your application.
a. Right Click on the project in Package Explore and click on Run As -> Android Application.
android compile app
b. Now you can see an AVD is opened and booting up.( It will take much time to launch AVD for the first time)
c. Once the AVD started you can see the output on the AVD screen.

Web Hosting

No comments:

Post a Comment