Getting Started with Android Development



Similar documents
Installing the Android SDK

Android Environment SDK

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

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

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 (

ADT Plugin for Eclipse

Tutorial on Basic Android Setup

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

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

Hello World. by Elliot Khazon

Epidefender Studio Installation notice

Fahim Uddin 1. Java SDK

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

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

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

1) SETUP ANDROID STUDIO

Android Environment SDK

Android 4.4 App Development Essentials

POOSL IDE Installation Manual

Introduction to Android Development

How to build your first Android Application in Windows

Android Setup Phase 2

Application Development Setup Guide

Android Programming: Installation, Setup, and Getting Started

Lab 0 (Setting up your Development Environment) Week 1

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

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

Setting up Sudoku example on Android Studio

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

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

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

How To Develop An Android App On An Android Device

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

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

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

Basic Android Setup Windows Version

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

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

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

How to Create an Android Application using Eclipse on Windows 7

Running a Program on an AVD

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

Android Development Tools for Eclipse

How to use the Eclipse IDE for Java Application Development

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

Example Connection between USB Host and Android

Android Introduction

Android: How To. Thanks. Aman Nijhawan

How to Set Up Your PC for Android Application Development

Java. How to install the Java Runtime Environment (JRE)

Getting Started using the SQuirreL SQL Client

Android Mobile App Building Tutorial

System Reference 2013

Developing In Eclipse, with ADT

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

How to Set Up Your PC for Android Application Development

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

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

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

Titanium Mobile: How-To

Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.

Installing (1.8.7) 9/2/ Installing jgrasp

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

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

Developing NFC Applications on the Android Platform. The Definitive Resource

UP L18 Enhanced MDM and Updated Protection Hands-On Lab

Board also Supports MicroBridge

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

Building OWASP ZAP Using Eclipse IDE

Java Software Development Kit (JDK 5.0 Update 14) Installation Step by Step Instructions

Mesa DMS. Once you access the Mesa Document Management link, you will see the following Mesa DMS - Microsoft Internet Explorer" window:

Practice Fusion API Client Installation Guide for Windows

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

Oculus Mobile Software Development Kit (SDK) Device and Environment Setup Guide

Tutorial on Basic Android Setup

Software Development Environment. Installation Guide

WA2102 Web Application Programming with Java EE 6 - WebSphere RAD 8.5. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Using Intel C++ Compiler in Eclipse* for Embedded Linux* targets

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

Installing Ruby on Windows XP

Guide to Installing BBL Crystal MIND on Windows 7

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

To begin, visit this URL:

Android Programming and Security

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)

Introduction to Android Programming (CS5248 Fall 2015)

Mobile Development Documentation

WA1791 Designing and Developing Secure Web Services. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc. 1

Arduino & Android. A How to on interfacing these two devices. Bryant Tram

Silk Test Testing Mobile Web Applications

Reminders. Lab opens from today. Many students want to use the extra I/O pins on

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

2. Click the download button for your operating system (Windows, Mac, or Linux).

Getting TechWizard Version 4 Started Using Excel 2007 or Higher

Android Development. Lecture AD 0 Android SDK & Development Environment. Università degli Studi di Parma. Mobile Application Development

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

Installing Eclipse C++ for Windows

SIM900 Eclipse environment install Application Note_V1.00

Compiere ERP & CRM Installation Instructions Windows System - EnterpriseDB

Transcription:

Getting Started with Android Development By Steven Castellucci (v1.1, January 2015) You don't always need to be in the PRISM lab to work on your 4443 assignments. Working on your own computer is convenient if the lab is busy, closed, or if you live far from the University. To do so, you must first install software on your computer. The steps below will guide you on downloading, installing, and configuring the needed tools. Note: The screenshots below were taken on a Windows machine, but the instructions also apply to systems running Linux or OS X. 1. Java Development Kit If you have already installed the full Java Development Kit (JDK), and not just the Java Runtime Environment (JRE), you can skip this step. Otherwise, download and install the JDK at the following URL: http://www.oracle.com/technetwork/java/javase/downloads/index.html The JDK version used for this guide is Java SE 7u40, but other versions should work equally well. 2. Install Eclipse If you already have Eclipse installed, skip to the next step. Otherwise, download Eclipse IDE for Java Developers from the following URL: http://www.eclipse.org/downloads/ Eclipse does not require installation. Just extract the files in the zip archive into your home directory. Using your home directory (or a subdirectory therein) ensures that you have the necessary file permissions to read, write, and execute your code. For convenience, create a shortcut (a.k.a. symbolic link or alias) on the desktop that points to the Eclipse executable. The executable can be found in the Eclipse subdirectory of the extracted bundle.

3. Android SDK Tools and Eclipse Plugin Download and install the SDK Tools from the following URL (ignore the Android Studio Package): Next, add the ADT plugin to Eclipse: http://developer.android.com/sdk/index.html#other 1. Start Eclipse, then select Help > Install New Software. 2. Click Add, in the top-right corner. 3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/ Note: Make sure the update site URL you enter starts with HTTPS. 4. Click OK. 5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next. 6. In the next window, you'll see a list of the tools to be downloaded. Click Next. 7. 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. 8. When the installation completes, restart Eclipse. Once Eclipse restarts, you must specify the location of your Android SDK directory: 1. In the "Welcome to Android Development" window that appears, select Use existing SDKs. 2. Browse and select the location of the Android SDK directory you recently downloaded and unpacked. 3. Click Next. 4. Android IDE Start Eclipse to run the Android IDE. The dialog below will automatically appear. Change workspace to 4443_workspace. This is where your projects will be saved. To skip this step next time, ensure Use this as the default and do not ask again is checked. Click OK to create the directory (if it does not already exist) and continue. Next, close the Welcome tab. Before creating your first Android application, some configuration is required.

Unfortunately, the Android SDK is not yet 100% compatible with Java 1.7. To avoid possible incompatibilities, click on the Windowmenu, then Preferences. In the left panel, double-click on Java, and then click oncompiler. On the right, set Compiler compliance level to 1.6. Click on the Window menu, Show View, and Other. Double-click on Android, selectdevices and click OK. Repeat the procedure, but this time, selectlogcat. Do not select LogCat (deprecated). Thesenew tabs at the bottom of the IDE window will allow you to view devices and debugging information when running your application.

5. Additional APIs The SDK bundle comes with the platform and system image of the latest Android API. The platform allows your code to use the features of a specific version of Android. The system image is used by AVDs to emulate the corresponding Android version. Click on the Window menu, then Android SDK Manager. For 4443, we will target the following Android SDK platforms: 5.0 (API 21), 4.3 (API 18), 3.1 (API 12), and 2.3.3 (API 10). In the manager, make the selections illustrated below and click Install packages. Accept the license for each package and click Install. After installation, it is recommended that you restart Eclipse. Note 1: Platforms prior to 4.0 integrated the system image into the platform package. Note 2: The Google USB Driver allows you to interface with physical Android devices.

6. Android Virtual Device You can use an Android Virtual Device (AVD) to run and test your Android applications. To define one, click on the Window menu, then Android Virtual Device Manager. Click on New, and use the settings in theimage to the right.in particular, note that the AVD name cannot contain a space. The device represents the Nexus 4 smartphone, but you could also create an AVD that represents the Nexus 10 tablet. The target API for the device is Android 5.0 (updated from the image). The RAM and SD card sizes are set conservatively. Feel free to increase these values if your computer can spare the resources. Click OK to create the AVD. 7. Hello World A Hello World program will guide you through the process of creating a basic Android application and will test if the IDE and AVD are set up correctly. From the File menu, select New and Android Application Project.Type HelloWorld as the application name. For simplicity, click Next four times and then Finish. Click the Run button on the toolbar, select Android Application, and click OK. An AVD will launch. After a rather long initialization, your HelloWorld application will install and launch.

Debugging information from the AVD will appear in the LogCat tab at the bottom of the IDE window. For greater access to the AVD, click on the Window menu, Open Perspective, and DDMS. Here, you have access to the AVD s file structure, CPU load, and can simulate incoming phone calls. To return to the previous perspective, click on Window, Open Perspective, and Java. Note that this application can be installed on an actual device. To do so, copy the.apk file found in the project s bin directory to the actual device. Running the.apk file on the device will install it.