Basic Android Setup. 2014 Windows Version

Similar documents
Tutorial on Basic Android Setup

Tutorial on Basic Android Setup

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 (

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

Getting Started with Android Development

Tutorial on OpenCV for Android Setup

Android Environment SDK

Installing the Android SDK

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

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

Lab 0 (Setting up your Development Environment) Week 1

Fahim Uddin 1. Java SDK

Introduction to Android Development

Android Setup Phase 2

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

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

Hello World. by Elliot Khazon

IOIO for Android Beginners Guide Introduction

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

Android Programming: Installation, Setup, and Getting Started

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

Android Development Tutorial. Human-Computer Interaction II (COMP 4020) Winter 2013

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

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

1) SETUP ANDROID STUDIO

Board also Supports MicroBridge

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

How to Create an Android Application using Eclipse on Windows 7

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

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

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

Android Environment SDK

Application Development Setup Guide

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

Android Mobile App Building Tutorial

Example Connection between USB Host and Android

How to build your first Android Application in Windows

Android 4.4 App Development Essentials

Introduction to Android Development. Jeff Avery CS349, Mar 2013

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

Android Introduction

Setting up Sudoku example on Android Studio

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

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

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

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

Android Programming and Security

How To Develop An Android App On An Android Device

Eclipse installation, configuration and operation

Running a Program on an AVD

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

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

How to Set Up Your PC for Android Application Development

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

Android Tutorial. Larry Walters OOSE Fall 2011

Developing In Eclipse, with ADT

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

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

An Introduction to Android

OpenCV on Android Platforms

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)

Getting Started: Creating a Simple App

Introduction to Android

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

Introduction to Android

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

ANDROID RECOVERY STICK QUICK START GUIDE

Introduction to Android Programming (CS5248 Fall 2015)

DRAFT COPY: CONTENTS SUBJECT TO CHANGE. FTC Training Manual. JAVA Programming for the Next Gen Controller. FIRST Tech Challenge 8/3/2015

01. Introduction of Android

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

How to Set Up Your PC for Android Application Development

ADT Plugin for Eclipse

Android Application Development

Installing Eclipse C++ for Windows

ORACLE BUSINESS INTELLIGENCE WORKSHOP. Prerequisites for Oracle BI Workshop

Homework 9 Android App for Weather Forecast

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

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

Developing NFC Applications on the Android Platform. The Definitive Resource

directory to "d:\myproject\android". Hereafter, I shall denote the android installed directory as

How to use the Eclipse IDE for Java Application Development

Epidefender Studio Installation notice

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

Android Development Tools for Eclipse

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

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

CS378 -Mobile Computing. Android Overview and Android Development Environment

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

Practical Android Projects Lucas Jordan Pieter Greyling

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Cisco Cius Development Guide Version 1.0 September 30, 2010

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

Contents First Time Setup... 2 Setting up the Legal Vault Client (KiteDrive)... 3 Setting up the KiteDrive Outlook Plugin Using the Legal Vault

Mobile Application Development

Develop a Hello World project in Android Studio Capture, process, store, and display an image. Other sensors on Android phones

Transcription:

Basic Android Setup 2014 Windows Version Introduction In this tutorial, we will learn how to set up the Android software development environment and how to implement image processing operations on an Android mobile device. Android is an open-source platform developed by Google and the Open Handset Alliance on which interesting and powerful new applications can be quickly developed and distributed to many mobile devices. There is a large, growing community of Android developers and a vast selection of Android devices, which includes smartphones, tablets, and TV setup boxes. Android also comes with an extension library of useful functions, including functions for user interfaces, image/bitmap manipulation, and camera control. The tutorial is split into two parts. In the first part, we will explain how to download and install the Android software tools onto your computer. Then, in the second part, we will explain how to develop image processing programs that can run on an Android mobile device. Estimated time to complete this tutorial: 2 hours Part I: Creating the Software Development Environment 1 We will use the Google Android SDK and the Eclipse IDE to design, implement, and debug Android-compatible programs in this class. Downloading and Installing Java JDK The Java JDK from SUN/Oracle is required for development. 1. Download the latest version of the JDK from this website: http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. Execute the downloaded installer. Downloading and Installing the Android SDK Bundle 1. Download ADT Bundle for Windows from this website: http://developer.android.com/sdk/index.html 1 Parts of this tutorial borrow explanations from the official Android developers website (developer.android.com). 1

2. Unzip the downloaded file to a convenient location on your hard disk, for example: C:\\adt-bundle-windows-x86_64-20130729 3. Open the Eclipse program included in the bundle, for example C:\\adt-bundle-windows-x86_64-20130729\\eclipse\\eclipse.exe 4. When asked to choose a default workspace, pick a folder that is easy to remember and access, for example: C:\\Users\\Your_Name\\workspace 5. Verify that Eclipse starts properly and an IDE window like in Figure 1 is shown. You can display the primary development console by choosing Window > Show View > Console, so that a console like in Figure 2 appears. Figure 1. Initial start-up screen of the Eclipse IDE. Figure 2. Development console within the Eclipse IDE. 2

Updating the Android SDK 1. Add the location of the tools and platform-tools subfolders for the Android SDK to your system PATH. For help on editing the PATH, please follow the tips here: http://www.computerhope.com/issues/ch000549.htm 2. In Eclipse, select Window > Android SDK Manager. A window like that in Figure 3 should pop up. 3. In the Android SDK Manager that pops up, check at least the following boxes under Packages : Tools, Android 4.0, Android 3.0, Android 2.3, Android 2.2, Android 2.1, Android 1.6, Extras. 4. Click Install <number> packages, choose Accept License for all items listed, and click Install. The selected packages will now be downloaded and copied to your Android SDK installation folder. You can monitor the download/installation progress at the bottom of the Android SDK Manager window. 5. During the download, if you are asked for Motorola or HTC developer account information, you can register for free accounts at: http://developer.motorola.com, http://htcdev.com Figure 3. Android SDK Manager in Eclipse. 6. If you encountered problems in this section, please take a look at the tips on these sites: http://developer.android.com/sdk/index.html http://developer.android.com/sdk/installing/bundle.html Linking Your Phone to Your Computer 1. Connect your phone to your computer via USB. Turn on your phone. 2. Go to the home screen. 3

3. Select Settings > Applications > Development and then enable USB debugging. 4. After you have downloaded updates for the Android SDK in Eclipse above, the USB driver should have been included. Install the USB driver on your computer, following the tips on these pages: http://developer.android.com/guide/developing/device.html#setting-up http://developer.android.com/sdk/win-usb.html Note: For the Motorola Droid, you can also download the latest USB driver from: http://www.motorola.com/support/us-en/support- Homepage/Software_and_Drivers/USB-and-PC-Charging-Drivers Note: You may need to restart your computer after installing the USB driver in order for the phone to show up in Eclipse. Part II: Developing Image Processing Programs for Android Now that the Google Android SDK, the Java Runtime, and the Eclipse IDE are all set up on your computer, we are ready to start writing image processing programs that can run an Androidcompatible mobile device. Hello World Example First, we will build a simple Android program in Eclipse. This simple example will also help you to become familiar with how to create an Android project, how to (auto) compile source code, and how to run the generated executable on the mobile device. Please follow the instructions on this page to develop the My First App program: http://developer.android.com/training/basics/firstapp/index.html Note: In case there are strange errors when the project is created about R.java, simply add a comment line (e.g., // dummy comment ) at the top of gen : com.example.myfirstapp : R.java and save the file. This will make the errors disappear. In the external My First App tutorial, they only run the My First App program in an emulator. Additionally, we will now also run the program on the actual Android phone. Make sure your phone is properly linked to your computer. 1. In Eclipse, select the project MyFirstApp in the Project Explorer. Then, select Project > Properties > Android and pick the highest Android version supported by your mobile device, e.g., Android 2.1 for the Droid phone. 2. Select Run > Run Configurations > Android Application > MyFirstApp > Target. Choose Always prompt to pick device. 4

3. Select Run, and in the Device Chooser dialog, select your Android phone. The My First App program will be sent to and automatically started on your phone, and you should see the screen similar to Figure 4 on your phone. Figure 4. My First App program running on an Android phone. 5