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 ?
- Java ( JDK5 or JDK6 or any latest version )
- Android
- SDK
- Platforms ( at least one )
- Eclipse
- 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
- Start
Eclipse, then select Help > Install New Software....
- Click Add,
in the top-right corner.
- In the Add
Repository dialog that appears, enter "ADT Plugin" for the Name
and the following URL for the Location:
- 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).
- In the
Available Software dialog, select the checkbox next to Developer Tools and
click Next.
- In the
next window, you'll see a list of the tools to be downloaded. Click Next.
- 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
- Open eclipse by clicking on eclipse.exe
- 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