![]() Android SDK Installation Guide |Here’s a quick start installation guide to get you up and running with the Google Android Software Development Kit (SDK). This guide will describe how to install the Android SDK and set up your chosen development environments. If you’ haven’t already done so you can download the Android SDK from the link below, then we can get started. First you’ll need to download the Android SDK source files: ( http: //code. System Requirements. NZD (New Zealand Dollar) - Latest News, Analysis and Forex. https://www.dailyfx.com/nzd Latest NZD market news, analysis and New Zealand Dollar trading forecast. Environment Used: Eclipse Indigo (3.7.1) IDE. Java SE (JDK/JRE) 6. Installing Java JDK/JRE. You will need Java SE Runtime Environment (JRE) to use Eclipse. Here’s a quick start installation guide to get you up and running with the Google Android Software Development Kit (SDK). This guide will describe how to install. I had Eclipse Indigo installed on my computer with the Android plugin and it was working perfectly for about two weeks. Today, I updated java and quicktime then. ![]() In order to first use the Android SDK code and tools for development you will of course need a suitable environment develop from. Currently the following operating systems are supported: Windows XP or Vista. Mac OS X 1. 0. 4. Linux (tested on Linux Ubuntu Dapper Drake)You will also need to install a suitable development environment such as: Installing The Android SDKFirst you will need to download the Android SDK pack . Please note: This installation location will be referred to as $SDK_ROOT from now on through this tutorial. Alternatively you can add /tools to your root path which will prevent the need to specify the full path to the tools directory along with enabling you to run Android Debug Bridge (adb) along with other command line tools. To add /tools: Linux. Edit the ~/. bash_profile or ~/. PATH variable. Add the full path location to your $SDK_ROOT/tools location for the PATH variable. If no PATH line exists you can add the line by typing the following: export PATH=${PATH}: < path to your $SDK_ROOT/tools> Mac OS XIn the home directory locate the . PATH variable add the location to your $SDK_ROOT/tools folder. Windows XP / Vista. Right click on the My Computer icon and select the properties tab. Select the Advanced tab and click the Environment Variables button. In the new dialog box dowble- click on Path (located under System Variables) and type in the full path location to the tools directory. The Android SDK also requires a suitable development environment to work in, here’s the installation guides for each of the supported environments. Android Eclipse Plugin (ADT)If you choose to use the Eclipse IDE as your Android development environment you will have the opportunity to install and run a plug- in called Android Development Tools. ADT comes with a variety of powerful tools and extensions that will make creating, running and debugging your Android applications much easier and faster. In order to download and install ADT you will first need to configure an Eclipse remote update, this can achieved via the following steps: Start Eclipse, then select Help > Software Updates > Find and Install…. In the dialog that appears, select Search for new features to install and press Next. Press New Remote Site. In the resulting dialog box, enter a name for the remote site (e. Android Plugin) and enter this as its URL: https: //dl- ssl. Press OK. You should now see the new site added to the search list (and checked). Press Finish. In the subsequent Search Results dialog box, select the checkbox for Android Plugin > Eclipse Integration > Android Development Tools and press Next. Read the license agreement and then select Accept terms of the license agreement, if appropriate. Press Next. Press Finish. The ADT plugin is not signed; you can accept the installation anyway by pressing Install All. Restart Eclipse. After restart, update your Eclipse preferences to point to the SDK root directory ($SDK_ROOT): Select Window > Preferences… to open the Preferences panel. Mac OS X: Eclipse > Preferences)Select Android from the left panel. For the SDK Location in the main panel, press Browse.. SDK root directory. Press Apply, then OKUpdating the ADT Plugin. To update the ADT plugin to the latest version, follow these steps: Select Help > Software Updates > Find and Install…. Select Search for updates of the currently installed features and press Finish. If any update for ADT is available, select and install. Alternatively: Select Help > Software Updates > Manage Configuration. Navigate down the tree and select Android Development Tools < version> Select Scan for Updates under Available Tasks. How- To Use Eclipse To Develop Android Applications. In order to begin development on your Android applications you will first need to create a new Android project and then configure a launch configuration. Once completed you will have the capability to write, run and debug your Android creations. The following sections below will provide you with the necessary instructions to get you up and running with Android provided you have installed the ADT plugin (as previously mentioned) in your Eclipse environment. Creating A New Android Project. The Android Development Tools plugins kindly provides a Wizard for setting up new Projects which will allow us to create new Eclipse projects relatively quickly for either new or existing code. Select File > New > Project. Select Android > Android Project, and press Next. Select the contents for the project: Select Create new project in workspace to start a project for new code. Enter the project name, the base package name, the name of a single Activity class to create as a stub . Select Create project from existing source to start a project from existing code. Use this option if you want to build and run any of the sample applications included with the SDK. The sample applications are located in the samples/ directory in the SDK. Browse to the directory containing the existing source code and click OK. If the directory contains a valid Android manifest file, the ADT plugin fills in the package, activity, and application names for you. Press Finish. Once completed the ADT plugin will go ahead and create the following files and folders as appropriate for the type of project selected: src/ A folder that includes your stub . Activity file. res/ A folder for your resources. Android. Manifest. The manifest for your project. Creating A Launch Configuration For Eclipse. In order to be able to run and debug your own Eclipse applications you must first create a launch configuration. Simply, a launch config is used to specify which project to launch, which activity to start and the specific emulation options to use. To create a launch configuration for the application, please see the following steps: 1. Select Run > Open Run Dialog… or Run > Open Debug Dialog… as appropriate. In the project type list on the left, right- click Android Application and select New. Enter a name for your configuration. On the Android tab, browse for the project and Activity to start. On the Emulator tab, set the desired screen and network properties, as well as any other emulator startup options. You can set additional options on the Common tab as desired. Press Apply to save the launch configuration, or press Run or Debug (as appropriate). Running and Debugging an Eclipse Application. Once both steps 1 and 2 have been completed and your project and launch configs are up and running you will now be able to run or debug your application. From the Eclipse main menu, select Run > Run or Run > Debug as appropriate. This command will run or debug the most recently selected application. To set or change the active launch configuration, use the Run configuration manager, which you can access through Run > Open Run Dialog… or Run > Open Debug Dialog…. Running or debugging the application will trigger the following actions: Starts the emulator, if it is not already running. Compile the project, if there have been changes since the last build, and installs the application on the emulator. Run starts the application. Debug starts the application in “Wait for debugger” mode, then opens the Debug perspective and attaches the Eclipse Java debugger to the application. Developing Android Applications with Other IDEs and Tools. Although it is recommended you use Eclipse with the Android plugin to develop your applications, the SDK also provides tools which will enable you to develop with other IDE’s including intelli. J (alternatively you could just use Eclipse without the plugin). Creating an Android Project. Bundled with the Android SDK is a program called activity. Creatory. activity. Creator will generate a number of ‘stub’ files for your chosen project alongside a build file. This can be used to either create an Android project for new code or from existing code. For Linux and Mac users the Android SDK provides a Python script called activity. Creator. py, with Windows users receiving a btach script called activity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
October 2017
Categories |