Android Setup Phase 2



Similar documents
Installing the Android SDK

Android Development. 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah.

Android Development Setup [Revision Date: 02/16/11]

Getting Started with Android Development

Hello World. by Elliot Khazon

Android Environment SDK

Setting up Sudoku example on Android Studio

How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

Fahim Uddin 1. Java SDK

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

Android 4.4 App Development Essentials

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

Android Environment SDK

Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen,

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Developing In Eclipse, with ADT

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Tutorial on Basic Android Setup

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

How to Create an Android Application using Eclipse on Windows 7

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

Android Programming: Installation, Setup, and Getting Started

Android Development Tutorial. Nikhil Yadav CSE40816/ Pervasive Health Fall 2011

Home Course Catalog Schedule Pricing & Savings Training Options Resources About Us

Lab 0 (Setting up your Development Environment) Week 1

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

With a single download, the ADT Bundle includes everything you need to begin developing apps:

Basic Android Setup Windows Version

Introduction to Android Development

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

About this Release. Introduction. Prerequisites. Installation. Using the Web SDK Packager

Building graphic-rich and better performing native applications. Pro. Android C++ with the NDK. Onur Cinar

Android: Setup Hello, World: Android Edition. due by noon ET on Wed 2/22. Ingredients.

Application Development Setup Guide

Offline Android Installer

ADT Plugin for Eclipse

IBM TRIRIGA Anywhere Version 10 Release 4. Installing a development environment

Running a Program on an AVD

Board also Supports MicroBridge

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

How to build your first Android Application in Windows

Epidefender Studio Installation notice

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

How To Develop An Android App On An Android Device

Android Tutorial. Larry Walters OOSE Fall 2011

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)

Example Connection between USB Host and Android

Silk Test Testing Mobile Web Applications

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

OpenCV on Android Platforms

What else can you do with Android? Inside Android. Chris Simmonds. Embedded Linux Conference Europe Copyright 2010, 2net Limited.

Programmazione di sistemi mobili e tablet

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

l What is Android? l Getting Started l The Emulator l Hello World l ADB l Text to Speech l Other APIs (camera, bitmap, etc)

Advantages. manage port forwarding, set breakpoints, and view thread and process information directly

Cisco Cius Development Guide Version 1.0 September 30, 2010

Università Degli Studi di Parma. Distributed Systems Group. Android Development. Lecture 1 Android SDK & Development Environment. Marco Picone

IOIO for Android Beginners Guide Introduction

How to Install Applications (APK Files) on Your Android Phone

Introduction to Gear VR Development in Unity APPENDIX A: SETUP (WINDOWS 7/8)

Developing NFC Applications on the Android Platform. The Definitive Resource

Titanium Mobile: How-To

WA Continuous Integration with Jenkins- CI, Maven and Nexus. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Software Development Environment. Installation Guide

Practice Fusion API Client Installation Guide for Windows

ID TECH UniMag Android SDK User Manual

Android 4.4 App Development Essentials

Getting Started using the SQuirreL SQL Client

Introduction to Android Development. Jeff Avery CS349, Mar 2013

Android Application Development

UP L18 Enhanced MDM and Updated Protection Hands-On Lab

CS 528 Mobile and Ubiquitous Computing Lecture 2: Android Introduction and Setup. Emmanuel Agu

Installing and Running the Google App Engine On Windows

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1

Android Application Development: Hands- On. Dr. Jogesh K. Muppala

App Development for Smart Devices. Lec #2: Android Tools, Building Applications, and Activities

Change Manager 5.0 Installation Guide

1.1 Installing Protégé You can follow the steps below to download and install Protégé from the source.

buzztouch for Android

Supplement I.B: Installing and Configuring JDK 1.6

Android Environment Emulator

How to Set Up Your PC for Android Application Development

Android Development. Marc Mc Loughlin

CSA Software Listing Table of Contents. Both Windows and Mac platforms are supported.

Intel Integrated Native Developer Experience (INDE): IDE Integration for Android*

Android Mobile App Building Tutorial

Android Development Tools for Eclipse

Introduction to Gear VR Development in Unity APPENDIX A: SETUP (MAC OS X)

Installation of ADS SiMKit startup script and designkit on Windows for SiMKit version 4.4

Mobile Development Documentation

FileMaker 8. Installing FileMaker 8 ODBC and JDBC Client Drivers

Workshop on Android and Applications Development

5 reasons to choose Streamezzo SDK over Android SDK Page 2

Primavera P6 Professional Windows 8 Installation Instructions. Primavera P6. Installation Instructions. For Windows 8 Users

Published: SWD

Mobile Application Development

Android Introduction

Transcription:

Android Setup Phase 2 Instructor: Trish Cornez CS260 Fall 2012 Phase 2: Install the Android Components In this phase you will add the Android components to the existing Java setup. This phase must be completed by week 5. Task List: Task 1: Download the Android SDK. Task 2: Add Android s Build Targets to install with the SDK. Task 3: Install the Android Development Toolkit (ADT) plug-in for Eclipse. Task 4: Create an Android Virtual Device (AVD). Task 5: Take a test drive of the setup by creating and running the Hello World Android app. Task 1: Download the Android SDK Step 1: Download the core Android SDK tools. The Android SDK allows us to install packages that will support multiple versions of the Android OS and multiple API levels. The Android SDK is a collection of libraries, tools, scripts, documentation, and such. Before developing an Android application we must be able to specify an Android version build target. The Android SDK provides programmers with API libraries and developer tools necessary to build, test, and debug apps for Android. In this step you will download only the core SDK tools. In step 3 you will download the complete SDK environment. Download the core SDK package that corresponds to your system from the following address: http://developer.android.com/sdk/index.html NOTE: To install the core SDK, you can run an installation file or download a zip and extract it to your root directory. I chose to download the android-sdk zip, and extract it to C:\.

Step 2: Set a path to the Android SDK Tools and Platform Tools Once you've downloaded the Android SDK you will need to set up your development environment. As mentioned in Step 1, the SDK you just downloaded includes only the core SDK tools, which you can use to download the rest of the SDK packages (such as the latest system image).the Android SDK archive initially contains only the basic SDK tools. It does not contain an Android platform or any third-party libraries. In fact, it doesn't even have all the tools you need to develop an application. In order to start developing applications, you must install the Platform-tools and at least one version of the Android platform, using the SDK Manager. Platform-tools contains build tools that are periodically updated to support new features in the Android platform (which is why they are separate from basic SDK tools), including adb, dexdump, and others. The SDK contains folders for tools and platform-tools. These folders need to be on your path to be invoked from the command line. On windows click Start. Right-click Computer. Choose properties - >Advanced System Settings. Select Environment Variables.

Add the paths to android-sdk-windows\tools and android-sdk-windows\platform-tools to the existing paths. Do NOT remove existing paths! Remember to separate paths with a semicolon. I added the following paths: ;C:\android-sdk-windows\tools;C:\android-sdk-windows\platform -tools Step 3: Verify the new path settings by typing PATH into the command prompt. Type PATH into the Command Prompt.

Task 2: Add Android s Build Targets to install with the SDK Step 1: Run the Android SDK Manager to install Android packages. The Android SDK allows us to install packages that will support multiple versions of the Android OS and multiple API levels. To run the SDK Manager you can simply double-click SDK Manager from the android-sdk-windows. You may also invoke the SDK Manager from the command line by issuing the command: android NOTES: 1. The packages labeled "Android" support building applications compatible with different Android API levels. 2. You should install, at a minimum, the most recent (highest number) version. It is a good idea to install all available API levels. This is a smart choice since you may want to build applications that run on older Android versions. 3. Install Tools and Extras.

The packages containing check marks must be installed.

Step 2: Verify the Android installation. SDK Location

Task 3: Install the Android Development Toolkit (ADT) plug-in for Eclipse. Step 1: Linking the ADT to Eclipse Now that the SDK files have been installed, functionality must be added to Eclipse. 1. Load Eclipse. 2. Choose Windows -> Preferences 3. Click Android Specify the location of your Android SDK. Click Apply.

Step 2: Install the Android Development Toolkit To install the ADT plug-in for the first time you will need to use the "Install New Software" mechanism from within Eclipse. To update the ADT plug-in you will use the Update mechanism from within Eclipse. 1. Load Eclipse if it is not already loaded. 2. Choose Help-> Install New Software... 3. Enter the following URL into the field named Work with. https://dl-ssl.google.com/android/eclipse/ 4. Click the Add button. The following window will appear. Complete this first-time installation. Step 3: Restart Eclipse to complete the installation of the ADT plug-in. Verify that Android SDK manager and AVD Manager are listed in Window menu of Eclipse. If you had trouble installing the plug-in, instructions can be found on the ADT Plug-in for Eclipse on the android.com web site.

Task 4: Create an Android Virtual Device (AVD). To run the android Emulator, we need to create an Android Virtual Device, which defines the characteristics of the device on which you want to test. This includes not only the system image and screen size, but the hardware, data storage, etc.. If you want to test your app for multiple Android devices, you will need to create separate AVD's to emulate each unique device. In this task, you will create an Android Virtual Device to emulate the Nexus 5 (Google s smart phone). Step 1: Load Eclipse. Once the ADT plug-in has been installed in Eclipse, the SDK and AVD manager can be invoked from within Eclipse. This is the easiest way to create an AVD. Step 2: Load the AVD Manager from Eclipse. Select Window -> AVD Manager Click the New button. Step 3: Specify the attributes of the new AVD. Use a name that is descriptive. This AVD contains the settings that simulate the Samsung Nexus S Android phone. The target identifies the system image that will be used in the AVD emulator. Keep in mind that several versions of Android are still widely used on phones. If you want to reach the largest number of users, target an earlier version. If your app requires functionality that older platforms can t support, then target the new platform. Some applications require an SD card to extend storage. Unless you plan to use a lot of media files, 250MB is a good size. AVD performance can be slow. This may improve AVD load time. The skin is mainly the screen size of your device. Here the default has been selected This parameter is used to specify additional hardware.

Task 5: Take a test drive by creating the Hello World Android app. By creating and executing the Hello World Android Project, we can confirm the installation of all the Android plug-ins (SDK and ADT) and verify they were operational. Step 1: Create an Android Project in Eclipse 1. Load Eclipse. 2. Create a new application: File -> New -> Project. 3. Select the android Application Project wizard. - > Android Project Step 2: Complete the specifications of a new Android project Application Name is the project name that will appear in Eclipse. The package name is a namespace that uniquely identifies packages in your applications, but also among all other installed applications. A custom launcher icon will not be created for this example. A package is a name for a group of related classes. Android uses a collection of packages for predefined classes. Some of these packages are specific to Android, while others are solely related to Java and Google. It is typical to choose the most recent version of Android. Choose the lowest version of Android that you application will support.

You will next be asked to identify the Android activity. Select a BlankActivity. Activities will be discussed in class. Finally, you will specify the name for your main activity, layout, and application title. These will be discussed in class. For simplicity sake, these entries are left with the default values. Step 3: Run the project as an Android application.