10-09-2016, 09:32 AM
1454255731-02SetupandInstallation.ppt (Size: 1.98 MB / Downloads: 6)
Installation - Android SDK
The Android SDK is distributed through an SDK starter package containing the SDK tools.
Download the starter package from:
http://developer.androidsdk/index.html
Unzip the archive and copy the contents into a directory, e.g., C:\Development\Android\android-sdk-windows\.
Throughout the Getting Started guide, we refer to the base directory of your development environment as<DEVELOPMENT_ROOT>= c:\Development\Android.
Add the tools\ directory to your Windows path.
Right-click Computer on the desktop and select Properties.
Use the Advanced system settings to open the System Properties window, and select Environment Variables on the Advanced tab.
Look for the variable Path in the System variables window. Press Edit.
Scroll to the end of the Variable value, and add the full path to the tools\ directory to the end of the path, separated by a semicolon from the path before like :
;C:\Development\Android\android-sdk-windows\tools\
MAC: Update the PATH variable to point to the 'make' utility and the Android SDK tools directory in the/etc/rc.common or ~/.bash_profile file:
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec:/System/Library/CoreServices:/Developer/usr/bin:~/Development/Android/android-sdk- macosx/tools; export PATH
LINUX: Update your PATH to point to the 'make' utility and the Android SDK tools directory. If you use bash shell, add the following to the ~/.bashrc :
export PATH=/opt/android-sdk-linux/tools/;$PATH
Setting of ADT Bundle
The ADT Bundle provides everything you need to start developing apps, including a version of the Eclipse IDE with built-in ADT (Android Developer Tools) to streamline your Android app development.
If you don’t have, then download Android SDK from
http://developer.androidsdk/index.html
Unpack the ZIP file (named adt-bundle-<os platform>.zip) and save it to an appropriate location, such as a "Development" directory in your home directory.
Open the adt-bundle-<os platform>/eclipse/ directory and launch eclipse.
Create an Application
Select File > New > Android Application Project.
Enter the Application name.
Enter Project Name.
Enter com.android.projectName as the Package name.(Should be fully qualified)
Select Minimum required SDK and Target SDK (for ex. : API8:Android 2.2(Froyo) ) .
Click Next.
Enter the Activity name.
Click Finish.
Then go to src folder and open the HelloWorld.java