How to Configure and Setup Android

Document Sample
How to Configure and Setup Android Powered By Docstoc
					Step to Setting up Android and Configure..
Step 1 : Download eclipse-java-galileo-SR2-win32

Step 2 : Download android-sdk-windows 2.2

Step 3 : Download ADT-12.0.0


~> Save the above attached file on your desktop. Like following.




                                                                   ``
                                              Keval Nagaria             Page 1
~> cut all the rar file and pase it to C:\Adroid.

Step 4 : Extract eclipse-java-galileo-SR2-win32.zip




                                                                    ``
                                                    Keval Nagaria        Page 2
                ``
Keval Nagaria        Page 3
Step 5 : Open The Extract Folder and double click on eclipse.exe




Step 6 : Select workshop where you save your project like following.




                                                                       ``
                                              Keval Nagaria                 Page 4
Setp 7 : Goto Help menu and click on “Install New Software” like
following.




                                                                   ``
                                             Keval Nagaria              Page 5
                ``
Keval Nagaria        Page 6
Step 8 : Click on Add button and select Archive button and select ADT
pluging. Like following.




                                                                  ``
                                             Keval Nagaria              Page 7
                ``
Keval Nagaria        Page 8
~>Click on next and then click on finish



   Note:- (Don’t use Internet when you install this.)




                                                              ``
                                              Keval Nagaria        Page 9
Step 9 : Goto Window Menu and click on “preference”




                                                            ``
                                            Keval Nagaria    Page 10
Step 10 : Goto Android tab and select Android SDK path




                                                            ``
                                            Keval Nagaria    Page 11
~>And Click on Apply button.




                                               ``
                               Keval Nagaria    Page 12
                ``
Keval Nagaria    Page 13
Step 11 : Now goto Window menu and click on “Androi SDK and AVD
Manager”.




                                                                  ``
                                           Keval Nagaria           Page 14
Step 12 : Create your virtual devices like following.



~> Click on “new” button. Like following.




                                                                ``
                                                Keval Nagaria    Page 15
~>Give Emulator name like “android2.2”




~> Click on “Create AVD” button.




                                                         ``
                                         Keval Nagaria    Page 16
Note:- (Android2.2 is a mobile emulator and android 3.1 is a tablet pc
emulator so we can create another avd for android 3.1 tablet pc like
following.)



~> Click on “new” button and select android 3.1 SDK like following.




                                                                       ``
                                               Keval Nagaria             Page 17
~> Click on “Create AVD” button to create a android 3.1 emulator.




                                                                    ``
                                              Keval Nagaria          Page 18
~> Ready to run our first androi program.




                                                            ``
                                            Keval Nagaria    Page 19
~> click on new file->new->project




                                                     ``
                                     Keval Nagaria   Page 20
~> Click on android->Android Project and click on next button like
following.




                                                                     ``
                                               Keval Nagaria          Page 21
~> as soon as you press the next button the following scree are show.




~> Now Give your project name like “hello” and check mark on “build
target” and give a package name like “keval.hello” like following.




                                                                      ``
                                                Keval Nagaria           Page 22
~> Click on Finish button.



~> put this three line code and press “ctrl+shift+o” and run the program



TextView tv = new TextView(this);

tv.setText("Hello, Welcome to Keval Nagaria’s World…");

setContentView(tv);




                                                                     ``
                                              Keval Nagaria           Page 23
                ``
Keval Nagaria   Page 24
~> Run the program. Like following.




~> Click on “ok” button.




                                                      ``
                                      Keval Nagaria   Page 25
                ``
Keval Nagaria   Page 26
~> Finally the emulator run and our first program is run
successfully…like following.




                                                               ``
                                               Keval Nagaria   Page 27
                ``
Keval Nagaria   Page 28

				
DOCUMENT INFO
Shared By:
Stats:
views:22
posted:8/23/2012
language:English
pages:28
Description: How to Configure and Setup Android