29th October, 2018
Because Android applications run within the Dalvik virtual machine, you can write them on any platform that supports the developer tools. This currently includes the following: MicrosoftWindows (XP or later) Mac OS X 10.4.8 or later (Intel chips only) Linux To get started, you’ll need to download and install the following: The Android SDK Java Development Kit (JDK) 5 or 6 Download the latest JDK from Sun at http://java.sun.com/javase/downloads/index.jsp Downloading and Installing the SDK We can download the latest version of the SDK for your development platform from the Android development home at http://developer.android.com/sdk/index.html The SDK is presented as a ZIP file containing only the latest version of the Android developer tools. Install it by unzipping the SDK into a new folder. Before we can begin development you need to add at least one SDK Platform; do this on Windows by running the ‘‘SDK Setup.exe’’ executable, or on MacOS or Linux by running the ‘‘android’’ executable in the tools subfolder. In the screen that appears, select the ‘‘Available Packages’’ option on the left panel, and then select the SDK Platform versions you wish to install in the ‘‘Sources, Packages, and Archives’’ panel on the right. The selected platform will then be downloaded to your SDK installation folder and will contain the API libraries, documentation, and several sample applications. Developing with Eclipse Using Eclipse with the ADT plug-in for your Android development offers some significant advantages. Eclipse is an open-source IDE (integrated development environment) particularly popular for Java. development. It’s available for download for each of the development platforms supported by Android Windows,MacOS,andLinux) from the Eclipse foundation homepage: www.eclipse.org/downloads/ There are many variations available; the following is the recommended configuration for Android: Eclipse 3.4 or 3.5 (Galileo) Eclipse JDT plug-in WST WST and the JDT plug-in are included in most Eclipse IDE packages. Installing Eclipse consists of uncompressing the download into a new folder. When that’s done, run the eclipse executable. When it starts for the first time, create a new workspace for your Android development projects. Installing the ADT Plug-In Install the developer tools plug-in by following these steps:
You’ve downloaded the SDK, installed Eclipse, and plugged in the plug-in. You’re now ready to start programming for Android. Start by creating a new project and setting up your Eclipse run and debug configurations. Starting a New Android Project To create a new Android project using the Android New Project Wizard, do the following:
‘‘Project name’’ is the name of your project file; the ‘‘Package name’’ specifies its java package; Create Activity lets you specify the name of a class that will be your initial Activity; and the ‘‘Application name’’ is the friendly name for your application. ‘‘Min SDK Version’’ lets you specify the minimum version of the SDK that your application will run on. When you’ve entered the details, click Finish. Creating a Launch Configuration Launch configurations let you specify runtime options for running and debugging applications. Using a launch configuration you can specify the following: The Project and Activity to launch The virtual device and emulator options to use Input/output settings (including console defaults) We can specify different launch configurations for running and debugging applications. The following steps show how to create a launch configuration for an Android application:
Finally, set any additional properties in the Common tab. 7. Click Apply, and your launch configuration will be saved. Running and Debugging Your Android Applications You’ve created your first project and created the run and debug configurations for it. Before making any changes, test your installation and configurations by running and debugging the Hello World project. From the Run menu select Run or Debug to launch the most recently selected configuration, or select Run Configurations or Debug Configurations to select a specific configuration to use. Check Out Our Related Courses Android Tutorials Top 50 Android Interview Questions Android Training In Hyderabad
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills .
Write For Us