Wednesday, March 7, 2012

Android Preparing Development Environment

I feel many developers wants to write mobile app and run in their mobile. Tools are plays important role while developing any application. Like wise, If you want to develop android app, first you need to prepare develop environment. In this post will see how to install and create hello world project.

What to install ?
  1. Java ( JDK5 or JDK6 or any latest version )
  2. Android
    1. SDK
    2. Platforms ( at least one )
  3. Eclipse
  4. Eclipse ADT
Java

If Java is not installed in system, you need to download the java file from the following link and install it.

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Android SDK

If Android SDK is not installed in system, you need to download the SDK file from the following link and install it.

http://developer.android.com/sdk/index.html

Eclipse

If Eclipse is not available in machine, you need to download from the following link.
http://www.eclipse.org/downloads/

Note: No need to install eclipse, download and extract the eclipse. You will find eclipse.exe, just open this. 

Eclipse ADT

  1. Start Eclipse, then select Help > Install New Software....
  2. Click Add, in the top-right corner.
  3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
  1. Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
  1. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
  2. In the next window, you'll see a list of the tools to be downloaded. Click Next.
  3. Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.

Android Platforms

After successful installation, you will find SDK Manager.exe or AVD Manager.exe files in android installation folder.
  • Open the SDK Manager.exe, you will find the following screen
 
  • Select the platforms which you want to install. (it is better to install Eclair[ 2.1 ], Froyo[ 2.2], Gingerbread[2.3.3] and Honey Comb coz will find only these platforms in mobiles and tabs as per present market)
  • Click on the Install Packages and then select Accecept all, Click install

  • After successful installation, open the AVD Manager and create virtual device by clicking New button
 

  Creating Helloworld project
  1. Open eclipse by clicking on eclipse.exe
  2. Click on File -> New 

 3. Select the Android project
 4. Will find Create New Project Window, type the Project Name as Helloworld
 5. Next screen, will find Select Build target window. Select target platform, Click next


 
6. Here you will find Application name and project name. Type some names and click on the Finish button.



7. Run the application by clicking Run button and select Run as Android project.

You done... You will be able to see hello world application in Emulator.

Good luck :-)

References : http://developer.android.com/resources/tutorials/hello-world.html
                    http://developer.android.com/sdk/installing.html


9 comments:

  1. I believe there are many more pleasurable opportunities ahead for
    individuals that looked at your site.


    Android Training in Chennai


    Android Training in Bangalore



    ReplyDelete
  2. I love it when people get together and share opinions.
    Great website, stick with it!check this site

    ReplyDelete
  3. Those guidelines additionally worked to become a good way to
    recognize that other people online have the identical fervor like mine
    to grasp great deal more around this condition.

    mobile website builder

    ReplyDelete
  4. Other industries are also hiring these big-data, scientists like government agencies, big retailers, social-networking sites and even defense forces..thanks lot!!

    android training in chennai

    android online training in chennai

    android training in bangalore

    android training in hyderabad

    android Training in coimbatore

    android training

    android online training

    ReplyDelete