Downloading and Installation of Java Development Kit( JDK)
- Go to Java SE download and download jdk1.6.0.
- Double-click on the install file and
it should open an installer.
- Click next, then read and accept
the license.
- On the next screen you will encounter some
options. Just leave these alone and click next unless you know what you
are doing.
- The next page you encounter should install
(and in some cases download) the Java Development Kit.
- After the installer is finished, open run
by clicking Start --> Run.
- In the text box, type "cmd"
and click "OK".
- A simple window should be opened with a
black background and a text prompt.
- After focusing the window, type "javac"
and press enter. If the prompt returns something along the lines of: ''javac''
is not recognized as an internal or external command, operable program or batch
file" then continue with the next step. If it shows many more options
and lines, skip the all next steps of JDK installation.
- Open the properties of "My
Computer" by either right-clicking the icon on the desktop or
right-clicking Start --> My Computer. When the pop up menu
opens, scroll to the bottom and select "Properties".
- Open a window then click on "Advanced
System Setting".
- This should open a window named "System
Properties". Click on the "Advanced" tab and then
click "Environment Variables".
- Next, another window opens now select the "Path"
variable in the system variables.
- Now click on edit button. It opens a
new window named "Edit System Variable".
- Now Careful not to delete anything in variable
value text box. At the end of the text box, add a semi-colon if there is not
one already, and add "C:\Program Files\Java\jdk1.6.0\bin" to
the text box. This is assuming you did not change the file path of the
installation.
- Click "Apply" and "OK"
to all the windows you have just opened. Open the command prompt again,
while following steps 6-9 to see if that "javac"
command works.
Download Android SDK
- Download and install Java Development Kit(JDK) if
not installed already.
- Go to this link.
- Select the Android
Software Development Kit (SDK) for windows make sure to choose
the version that is correct for your operating system.
- After your Android SDK download is complete, unzip
and move this folder to a permanent location.
Install Eclipse IDE follow these steps:
- Go to this link.
- Select
the Eclipse classic 4.2.2 For Windows users, you will have to know
what type of version of your OS you have. If your computer is a 64 bit
Windows, select Windows 64 and if you have a 32 bit Windows, select
Windows 32 bit.
- Once
you have downloaded the Eclipse archive you will need to decompress the
zip file, which will create the unzipped Eclipse folder. You may want to
extract the archive to the root of C:\ drive, thus creating the folder
“C:\eclipse”, or just moved the extracted eclipse folder to the root of
C:\ drive if you extracted it already. Since Eclipse does not have any
installer, there will be a file inside the Eclipse folder named
eclipse.exe ( ). You can double click on the file to run Eclipse.
- After
eclipse has been fully installed and extracted, create a workspace folder
where you will contain all the program files you create.
- Now that you have finished installing eclipse restart your computer. By restarting your computer it refreshes system memory and allows changes made by installers and uninstallers to take effect.
Installing the Eclipse Plugin for Android :
- 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. 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.If you get a security
warning saying that the authenticity or validity of the software can't be
established, click OK.
- When the installation completes, restart Eclipse.
Configuring Android SDK:
1. After you’ve successfully downloaded the ADT as described above, the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory: Select Window --> Preferences to open the Preferences panel.
2. Select Android from the left panel.You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and click Proceed. You cannot continue with this procedure until you click Proceed.
3. For the SDK Location in the main panel, click Browse and locate your downloaded SDK directory.
Click Apply, then OK.
Run Application on Run on the Emulator:
To run your app on the
emulator you need to first create an Android Virtual Device (AVD). An AVD is a
device configuration for the Android emulator that allows you to model
different devices.
Create an AVD:
1. Launch the Android Virtual Device Manager : In
Eclipse, click Android Virtual Device Manager icon from the
toolbar.
- In
the Android Virtual Device Manager panel, click New.
- Fill
in the details for the AVD. Give it a name, a platform target, an SD card
size, and a skin (HVGA is default).
- Click Create
AVD.
- Select
the new AVD from the Android Virtual Device Manager and click Start.
After the emulator boots
up, unlock the emulator screen.
Import the Existing project into Eclipse:
- From
the main menu bar, select File --> Import Then Import
wizard opens.
- Select Android
> Existing Android Code into Workspace and click Next.
- Choose
either Select root directory or Select archive
file and click the associated Browse to locate
the directory or file containing the project.
- Under Projects select
the project.
- Click Finish to
start the import.
- After that the project folder is appear in the Package Explorer.
No comments:
Post a Comment