How to make Android Apps Using Eclipse

Hello Friends, I am glad to talk with you and share a valuable information about Android with all beginners.

First of all i introduce myself . I am Sawan Kumar, mobile and Web Developer and having worked on PHP,Java and recently switch on Android. As i teach on Android as i share with you.
So lets get started with your first basic setup for Android development.
  • Step 1:  Download and Install the Android SDK
  1. Download the Android SDK
  2. Install/Extract the downloaded SDK.
  3. Go to the directory where you installed the SDK and open SDK Manager to open Android SDK and AVD Manager.
  4. In AVD manager under Avaliable Packages you can see different versions of SDK’s
  5. Select SDK versions and Development tools
  6. Select SDK Platform tools and one of the version of SDK and click on install
Select SDK versions and Development tools
  • Step 2: Downloading Eclipse
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.
  • Step 3: Installing Android Development Toolkit
  1. Open Eclipse and under Help -> Install New Software.
  2. Now you will see a window which allows you to install new plug-in.
  3. Click on Add button and in Name and in Location give the link https://dl-ssl.google.com/android/eclipse/ and proceed with further steps.
Add plug-in Name and URL 
android plug-in tools
  • Step 4: Creating Sample Project

Creating a sample android project involves very few steps
  1. In your Eclipse IDE go to File -> Android Project
  2. Give Project Name, Select Build Target, Application Name, Package Name, Activity Name, Min SDK version and click Finish.
android create new project
     3. Now you can see bunch of files created in the project explorer.
Eclipse package explorer 
  • Step 5:  Creating New Android Virtual Device 
The AVD is an emulator which provides you android hardware and software environment to test application on computer.
  1. In Eclipse open SDK Manager under Windows -> Android SDK and AVD Manager.
SDK AVD Manager
     2. Click on New on the right side.
android virtual device 
    3. Give Name, Select Target give SD Card size and click on Create AVD.
android create avd 
   4. Now a new AVD is created with the specification you provided and Close the Android SDK and AVD Manager.
  • Step 6:  Running the Project
Once you successfully created AVD you are ready to test your application.
  1. Right Click on the project in Package Explore and click on Run As -> Android Application.
android compile app 
    2. Now you can see an AVD is opened and booting up.( It will take much time to launch AVD for the first time).
    3. Once the AVD started you can see the output on the AVD screen.
0 Comments
Disqus
Fb Comments
Comments :

0 comments:

Post a Comment