Popular Posts
-
Here we will ride on a horse to make us move to get overview of JCL (Job Control Language). How to write JCL.
-
It's time to improve ourselves. For this we will make our step forward to know the Android, How to get environment to start developing a...
Tuesday, September 13, 2011
Sunday, September 11, 2011
How to start with Android ( For developing application)
It's time to improve ourselves. For this we will make our step forward to know the Android, How to get environment to start developing application for android PDA(Personal Digital Assistance).
Steps to Install Android Environment
Step 1. Extract eclipse in your C drive (The drive in which OS is installed)
Step 2. Run Eclipse program
Step 3. Go to Help and then Install New Software A window will appear like this:
Step 4. Click on Add button which placed in top right side.
Step 5. A window will appear named Add Repository Fill each box like following :
i.e Name : Android
Location : http://dl-ssl.google.com/android/eclipse/
Step 6. Previous window (window name : Install) will get focus then after some times Developers Tools with a check box will appear. Select the check box like I have done in following image.
Step 7. Then click on next.then a progress bar will appear . then click on next then a window will appear like following: then Accept term and condition and click on next.
Step 8. Then it will start to install. and window will appear like :
Step 9. At the end It may ask to Restart eclipse.Allow to restart the eclipse.
Step 10. Now copy Android SDK to "C" drive and extract it.Then open the extracted folder. There would be following files.
Step 11. Double click on SDK manager.exe. then It will start fetching all packages to install. It will take sometime. The window may look like following image:
Step 12. After completing the fetching operation the window will appear like following image:
Step 13. Now click on Cancel button. (Because If you will select all options It will take more than 2 hours or may by more than that depending on Your Internet speed. In fact if you will select install here It will install many platforms starting from Android 1.5 to Android 3.2(latest version of Android), Many extensions. So If your net speed is not so fast just select cancel button)
Step 14. Now select Available Packages Select the required Platform. I have selected Three. you may select any number of platform or only one platform.After selecting the packages click on Install Selected Button.
Step 15.Then Following image will appear. Click on Install Button.
Step 16. It will start installing the selected platform. It will take time (generally more than 25 mins) .
Step 17. If any message regarding authenticity come just click on OK button.
Step 18. After downloading platform close the window (Android SDK and AVD manager). Now Open eclipse. Go to window menu and then preferences. Now Android tab will be in left pane ( most probably 2nd option would be Android). Click on Android. The window will look like following figure.
Step 20. Now Again in eclipse Go to window and then Android SDK and AVD Manager. The will look like following figure. Now click on New button placed on right side of window.
Step 21. Now A new window will appear Fill some text boxes as I have done.
like :-
Name: Android8 ( You can fill any name but there should be no space)
Target : click on box select any target if you have more than one.I have selected Android 2.2 - API . Level 8
Size : 10
Skin : Default (WVGA800) you can select anyone from them.
Now click on Create AVD button
Step 22. Then window will look like following window. If you want to create New AVD, just click on New then repeat the process.
: - Till Here We built the environment for Android : -
Now It's time to Start a project.
Step 1. Open eclipse , Go to New then Other (last option). the following window will appear. Click on Android then it's sub element will appear. Now select Android Project. Then click on Next.
Step2. Fill the boxes As I have done.
Project name: First
Build Target: select any platform.
Package name: com.first (package name should in at least two word separated by '.'(dot).
Now click on Finish.
Step 3. Now in left panel There would be Package Explorer. click on first (the project name) then src then com.first (package name) then double click on FirstActivity.java.
Then in right pane The default source code will appear.
Steps to Install Android Environment
Step 1. Extract eclipse in your C drive (The drive in which OS is installed)
Step 2. Run Eclipse program
Step 3. Go to Help and then Install New Software A window will appear like this:
Step 4. Click on Add button which placed in top right side.
Step 5. A window will appear named Add Repository Fill each box like following :
i.e Name : Android
Location : http://dl-ssl.google.com/android/eclipse/
Step 6. Previous window (window name : Install) will get focus then after some times Developers Tools with a check box will appear. Select the check box like I have done in following image.
Step 7. Then click on next.then a progress bar will appear . then click on next then a window will appear like following: then Accept term and condition and click on next.
Step 8. Then it will start to install. and window will appear like :
Step 9. At the end It may ask to Restart eclipse.Allow to restart the eclipse.
Step 10. Now copy Android SDK to "C" drive and extract it.Then open the extracted folder. There would be following files.
Step 11. Double click on SDK manager.exe. then It will start fetching all packages to install. It will take sometime. The window may look like following image:
Step 12. After completing the fetching operation the window will appear like following image:
Step 13. Now click on Cancel button. (Because If you will select all options It will take more than 2 hours or may by more than that depending on Your Internet speed. In fact if you will select install here It will install many platforms starting from Android 1.5 to Android 3.2(latest version of Android), Many extensions. So If your net speed is not so fast just select cancel button)
Step 14. Now select Available Packages Select the required Platform. I have selected Three. you may select any number of platform or only one platform.After selecting the packages click on Install Selected Button.
Step 15.Then Following image will appear. Click on Install Button.
Step 16. It will start installing the selected platform. It will take time (generally more than 25 mins) .
Step 17. If any message regarding authenticity come just click on OK button.
Step 18. After downloading platform close the window (Android SDK and AVD manager). Now Open eclipse. Go to window menu and then preferences. Now Android tab will be in left pane ( most probably 2nd option would be Android). Click on Android. The window will look like following figure.
Step 19. Click on Browse Button. And select the folder where you have extracted Android SDK Windows.
like I have done.Then click on Ok and again OK of Preferences window.
Step 20. Now Again in eclipse Go to window and then Android SDK and AVD Manager. The will look like following figure. Now click on New button placed on right side of window.
Step 21. Now A new window will appear Fill some text boxes as I have done.
like :-
Name: Android8 ( You can fill any name but there should be no space)
Target : click on box select any target if you have more than one.I have selected Android 2.2 - API . Level 8
Size : 10
Skin : Default (WVGA800) you can select anyone from them.
Now click on Create AVD button
Step 22. Then window will look like following window. If you want to create New AVD, just click on New then repeat the process.
: - Till Here We built the environment for Android : -
Now It's time to Start a project.
Step 1. Open eclipse , Go to New then Other (last option). the following window will appear. Click on Android then it's sub element will appear. Now select Android Project. Then click on Next.
Step2. Fill the boxes As I have done.
Project name: First
Build Target: select any platform.
Package name: com.first (package name should in at least two word separated by '.'(dot).
Now click on Finish.
Step 3. Now in left panel There would be Package Explorer. click on first (the project name) then src then com.first (package name) then double click on FirstActivity.java.
Then in right pane The default source code will appear.
Subscribe to:
Posts (Atom)