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

Size: px
Start display at page:

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

Transcription

1 App Development for Smart Devices CS 495/595 - Fall 2011 Lec #2: Android Tools, Building Applications, and Activities Tamer Nadeem Dept. of Computer Science

2 Objective Understand Android Tools Setup Android Development Environment Create HelloWorld Application Understand HelloWorld Structure Familiarize with Android Application Types and Components Understand the Role of Android Activity Know how to Build and Run Android Application Introduce Debug and Publish Page 2 Fall 2011 CS 495/595 - App Development for Smart Devices

3 Developing for Android Eclipse Android SDK Android Development Tools (ADT) Android Virtual Devices (AVD) & SDK Manager The Android Emulator Dalvik Debug Monitor Services (DDMS) The Android Debug Bridge (ADB) Page 3 Fall 2011 CS 495/595 - App Development for Smart Devices

4 Eclipse Page 4 Fall 2011 CS 495/595 - App Development for Smart Devices

5 Eclipse Eclipse IDE for Java Developers Open Select "Downloads" Select Eclipse IDE for Java Developers, 122MB Select Windows32 Extract zip file to c:\eclipse Installation Tutorial: avadevelopers/ Test First Development Tutorial: clipse/ Page 5 Fall 2011 CS 495/595 - App Development for Smart Devices

6 Android SDK Check Your Development Computer Supported Operating Systems Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit) Mac OS X or later (x86 only) Linux (tested on Ubuntu Linux, Lucid Lynx) Supported Development Environments JDK SE bit version (including JRE) Eclipse IDE for Java Developers - Indigo version 32bit version Android Development Tools (ADT) plugin SDK Installation Android SDK starter package installer_r12-windows.zip Android SDK Components Run Android SDK setup From Available packages window, select all items and then click install Page 6 Fall 2011 CS 495/595 - App Development for Smart Devices

7 ADT plugin Start Eclipse, then select Help > Install New Software Click Add, in the top-right corner. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: Click OK Wait and you should see "Developer Tools" in the Available Software dialog, select the checkbox next to Developer Tools and click Next. In the next window, you'll see a list of the tools to be downloaded. Click Next. Click Finish. Page 7 Fall 2011 CS 495/595 - App Development for Smart Devices

8 Configure ADT plugin Modify your ADT preferences in Eclipse to point to the Android SDK directory: 1) Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences). 2) Select Android from the left panel. 3) You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and click Proceed. You cannot continue with this procedure until you click Proceed. 4) For the SDK Location, locate your downloaded SDK directory. Click Apply, then OK. (Spaces in path causes an error, if you are using Windows64. For example, C:\Program Files(x86)\Android\android-sdk C:\PROGRA~2\Android\android-sdk) Page 8 Fall 2011 CS 495/595 - App Development for Smart Devices

9 Android Emulator Device Page 9 Fall 2011 CS 495/595 - App Development for Smart Devices

10 Android Emulator Hardware Option Characteristic Description Device ram size The amount of physical RAM on the device, in megabytes. Default value is "96". Touch-screen support Whether there is a touch screen or not on the device. Default value is "yes". Trackball support Whether there is a trackball on the device. Default value is "yes". Keyboard support Whether the device has a QWERTY keyboard. Default value is "yes". DPad support Whether the device has DPad keys. Default value is "yes". GSM modem support Whether there is a GSM modem in the device. Default value is "yes". Camera support Whether the device has a camera. Default value is "no". Maximum horizontal camera Default value is "640". pixels Maximum vertical camera pixels Default value is "480". GPS support Whether there is a GPS in the device. Default value is "yes". Battery support Whether the device can run on a battery. Default value is "yes". Accelerometer Whether there is an accelerometer in the device. Default value is "yes". Audio recording support Whether the device can record audio. Default value is "yes". Audio playback support Whether the device can play audio. Default value is "yes". SD Card support Whether the device supports insertion/removal of virtual SD Cards. Default value is "yes". Cache partition support Whether we use a /cache partition on the device. Default value is "yes". Cache partition size Default value is "66MB". Abstracted LCD density Sets the generalized density characteristic used by the AVD's screen. Default value is "160". Trackball support Whether there is a trackball present. Page 10 Fall 2011 CS 495/595 - App Development for Smart Devices

11 Android Emulator Controls Page 11 Fall 2011 CS 495/595 - App Development for Smart Devices

12 Your First Android Project Select File -> New -> Project -> Android -> Android Project and create the Android project right-click the project and select Run As > Android Application Page 12 Fall 2011 CS 495/595 - App Development for Smart Devices

13 Project Structure src/ - Java packages. Each package can have multiple.java files representing different classes. res/layout/ - XML files that specify the layout of each screen. res/values/ - XML files used as references by other files. res/drawable-hdpi/, res/drawable-mdpi/, and res/drawable-ldpi/ - high, medium, and low dots-perinch resolution pictures. res/color, res/menu, res/anim assets/ - additional non-media files. AndroidManifest.xml specifies the project to the Android OS. Auto-generated files (do not modify): gen/ contains auto-generated code. Class R.java generated by Android Asset Packaging Tool (aapt). default.properties contains project settings. Page 13 Fall 2011 CS 495/595 - App Development for Smart Devices

14 Project Structure Page 14 Fall 2011 CS 495/595 - App Development for Smart Devices

15 Resources, Package, Manifest Page 15 Fall 2011 CS 495/595 - App Development for Smart Devices

16 Android Software Stack Page 16 Fall 2011 CS 495/595 - App Development for Smart Devices

17 Application Framework Page 17 Fall 2011 CS 495/595 - App Development for Smart Devices

18 Android Component Model Packaging: APK File (Android Package) > Collection of components > Components share a set of resources Preferences, Database, File space > Components share a Linux process By default, one process per APK > APKs are isolated Communication via Intents or AIDL > Every component has a managed lifecycle Task (what users know as applications) > Collection of related activities > Capable of spanning multiple processes > Associated with its own UI history stack > Processes are started & stopped as needed > Processes may be killed to reclaim resources Page 18 Fall 2011 CS 495/595 - App Development for Smart Devices

19 Android Application Components i) Activity: Activity is a visual screen for interaction of user with the application. Depends upon design, an application may consists of one or more activities ii) Views: The User interface of an Activities is build with widgets. ii) Service: Service do not have a visual interface, it runs in the back ground, like play back music and fetching data from the network. iii) Broadcast Receiver: Broadcast receiver receive broadcast announcements and response to them according to the situation. iv) Content Provider: Content provider is a SQLite database, which supports the sharing and accessing of data among applications. v) Intents: Asynchronous messages which allow the application to request functionality from other services or activities. vi) Others parts are Android widgets/live Folders and Live Wallpapers. Page 19 Fall 2011 CS 495/595 - App Development for Smart Devices

20 Example of Components Interactions Page 20 Fall 2011 CS 495/595 - App Development for Smart Devices

21 Types of Android Applications Foreground Activity: An application that s only useful when it s in the foreground and is effectively suspended when it s not visible. Background Service: An application with limited interaction that, apart from when being configured, spends most of its lifetime hidden. Examples of this include call screening applications or SMS autoresponders. Intermittent Activity: Expects some interactivity but does most of its work in the background. Often these applications will be set up and then run silently, notifying users when appropriate. A common example would be a media player. Widgets: Interactive visual components that users can add to their home screens. Usually used to display information such as battery levels, weather forecasts, or the date and time. Page 21 Fall 2011 CS 495/595 - App Development for Smart Devices

22 Android s Activity An activity is an application component that provides a screen with which users can interact Activity is usually a single screen Implemented as a single class extending Activity Displays user interface controls (views) Reacts on user input / events An application typically consists of several activities Each screen is typically implemented by one activity Each activity can then start another activity (new screen) An activity may return a result to the previous activity "main" activity is presented to the user when launching the application for the first time. Each activity receives callbacks due to a change in its state during its lifecycle whether the system is creating it, stopping it, resuming it, or destroying it. Page 22 Fall 2011 CS 495/595 - App Development for Smart Devices

23 Activity Lifecycle Foreground Lifetime Visible Lifetime Entire Lifetime Page 23 Fall 2011 CS 495/595 - App Development for Smart Devices

24 Activity Lifecycle Page 24 Fall 2011 CS 495/595 - App Development for Smart Devices

25 Utilizing Activity Lifecycle Functions Simple exercise to see the activity lifecycle in action each overridden function is explicit and a Toast command is added to show on screen when the function is entered Run it on an Android device and try various cases: Changing the screen orientation destroys and recreates the activity from scratch. Pressing the Home button pauses the activity, but does not destroy it. Pressing the Application icon might start a new instance of the activity, even if the old one was not destroyed. Letting the screen sleep pauses the activity and the screen awakening resumes it. (This is similar to taking an incoming phone call.) Page 25 Fall 2011 CS 495/595 - App Development for Smart Devices

26 Back Stack Tasks and Activities Multiple Activity Instances Multiple Tasks Page 26 Fall 2011 CS 495/595 - App Development for Smart Devices

27 Notes on Activity Starting Activity: void startactivity (Intent intent) void startactivityforresult (Intent intent, int requestcode) void onactivityresult (int requestcode, int resultcode, Intent data) Shutting Down Activity: void finish () void finishactivity (int requestcode) Saving Activity Status void onsaveinstancestate (Bundle outstate) void onrestoreinstancestate (Bundle savedinstancestate) Activity A starts Activity B: A's onpause() B's oncreate(), onstart(), and onresume() (Activity B now has user focus.) A s onstop(), if A is no longer visible Page 27 Fall 2011 CS 495/595 - App Development for Smart Devices

28 Building Android Project Eclipse outputs an.apk file automatically to the bin folder of the project Contains all information to run the application, such as compiled.dex files, a binary version of AndroidManifest.xml, compiled resources (resources.arsc) and uncompiled resource files. Eclipse automatically builds application, enables debugging and signs the.apk with a debug key, by default. Page 28 Fall 2011 CS 495/595 - App Development for Smart Devices

29 Building Android Project (detailed) Page 29 Fall 2011 CS 495/595 - App Development for Smart Devices

30 Running Running on the emulator To run (or debug) your application, select Run > Run (or Run > Debug) from the Eclipse menu bar. Be certain to create multiple AVDs upon which to test your application. Running on a device Ensure application is debuggable by setting android:debuggable="true" of the<application> element in AndroidManifest.xml. Set up the device to allow installation of non-market applications. On the device, go to Settings > Applications and enable Unknown sources. Enable USB Debugging on the device. On the device, Settings > Applications > Development > USB debugging. For Windows, use Device Manager to install a USB driver for adb. (<androidsdk>\extras\google\usb_driver) Page 30 Fall 2011 CS 495/595 - App Development for Smart Devices

31 Manual Application Installation Manual Installation using adb App Package: <workspace>\<project Name>\bin\<Project Name>.apk Need adb tool located at <sdk>/platform-tools/ Modify Device settings as in Running on a Device In Command Prompt, type: adb [-d -e] install <path>/<file>.apk Manual Uninstall On device, go to Applications Menu ->Settings->Manage Applications. Select the application which you want to Uninistall, and click on the Uninstall button. Page 31 Fall 2011 CS 495/595 - App Development for Smart Devices

32 Debugging The main components that comprise Android debugging environment are: Device or Android Virtual Device Delvik Debug Monitoring Service (DDMS): graphical program that can capture screenshots, gather thread and stack information, spoof incoming calls and SMS messages, and other features. The Android Debug Bridge (ADB): provides various device management capabilities. JDWP debugger: allows you to step through code, view variable values, and pause execution of an application. A JDWP-compliant debugger is already included in Eclipse. Page 32 Fall 2011 CS 495/595 - App Development for Smart Devices

33 DDMS (Window > Open Perspective > Other... > DDMS) Page 33 Fall 2011 CS 495/595 - App Development for Smart Devices

34 Debug (Window > Open Perspective > Debug) Page 34 Fall 2011 CS 495/595 - App Development for Smart Devices

35 Putting Application on Market Signing Your Application with Eclipse To distribute your application, however, you must build your application in release mode and sign the.apk file with your own private key. right-click the project in the Package Explorer and select Android Tools > Export Unsigned Application Package. Then specify the file location for the unsigned.apk. Versioning Your Applications android:versioncode, android:versionname android:minsdkversion, android:targetsdkversion, android:maxsdkversion Preparing to Publish Check the following checklist: Publishing on Android Market Android Market developer registration: Page 35 Fall 2011 CS 495/595 - App Development for Smart Devices

36 Questions? Page 36 Spring 2011 CS 752/852 - Wireless and Mobile Networking

37 Recommended Assignment Have your development environment setup Programming: Hello World Programming: Utilizing lifecycle activities Page 37 Fall 2011 CS 495/595 - App Development for Smart Devices

Android Environment SDK

Android Environment SDK Part 2-a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 2A. Android Environment: Eclipse & ADT The Android

More information

Android Environment SDK

Android Environment SDK Part 2-a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 Android Environment: Eclipse & ADT The Android

More information

Getting Started with Android Development

Getting Started with Android Development 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

More information

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

Università Degli Studi di Parma. Distributed Systems Group. Android Development. Lecture 1 Android SDK & Development Environment. Marco Picone - 2012 Android Development Lecture 1 Android SDK & Development Environment Università Degli Studi di Parma Lecture Summary - 2 The Android Platform Android Environment Setup SDK Eclipse & ADT SDK Manager Android

More information

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

Android Development Tutorial. Nikhil Yadav CSE40816/60816 - Pervasive Health Fall 2011 Android Development Tutorial Nikhil Yadav CSE40816/60816 - Pervasive Health Fall 2011 Database connections Local SQLite and remote access Outline Setting up the Android Development Environment (Windows)

More information

Introduction to Android: Hello, Android! 26 Mar 2010 CMPT166 Dr. Sean Ho Trinity Western University

Introduction to Android: Hello, Android! 26 Mar 2010 CMPT166 Dr. Sean Ho Trinity Western University Introduction to Android: Hello, Android! 26 Mar 2010 CMPT166 Dr. Sean Ho Trinity Western University Android OS Open-source mobile OS (mostly Apache licence) Developed by Google + Open Handset Alliance

More information

Android Application Development - Exam Sample

Android Application Development - Exam Sample Android Application Development - Exam Sample 1 Which of these is not recommended in the Android Developer's Guide as a method of creating an individual View? a Create by extending the android.view.view

More information

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

Advantages. manage port forwarding, set breakpoints, and view thread and process information directly Part 2 a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 Android Environment: Eclipse & ADT The Android

More information

Hello World. by Elliot Khazon

Hello World. by Elliot Khazon Hello World by Elliot Khazon Prerequisites JAVA SDK 1.5 or 1.6 Windows XP (32-bit) or Vista (32- or 64-bit) 1 + more Gig of memory 1.7 Ghz+ CPU Tools Eclipse IDE 3.4 or 3.5 SDK starter package Installation

More information

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

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I) ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I) Who am I? Lo Chi Wing, Peter Lecture 1: Introduction to Android Development Email: Peter@Peter-Lo.com Facebook: http://www.facebook.com/peterlo111

More information

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

The Eclipse Classic version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended. Installing the SDK This page describes how to install the Android SDK and set up your development environment for the first time. If you encounter any problems during installation, see the Troubleshooting

More information

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)

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) today 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) l Other: Signing Apps, SVN l Discussion and Questions introduction to android

More information

How To Develop An Android App On An Android Device

How To Develop An Android App On An Android Device Lesson 2 Android Development Tools = Eclipse + ADT + SDK Victor Matos Cleveland State University Portions of this page are reproduced from work created and shared by Googleand used according to terms described

More information

Introduction to Android Programming (CS5248 Fall 2015)

Introduction to Android Programming (CS5248 Fall 2015) Introduction to Android Programming (CS5248 Fall 2015) Aditya Kulkarni (email.aditya.kulkarni@gmail.com) August 26, 2015 *Based on slides from Paresh Mayami (Google Inc.) Contents Introduction Android

More information

App Development for Smart Devices

App Development for Smart Devices App Development for Smart Devices CS 495/595 - Tamer Nadeem Dept. of Computer Science Course Logistics Page 2 Welcome to CS 495/595 Timings: Monday 7:10pm to 9:50pm Location: Dragas 1117 Instructor: Tamer

More information

Android Development. http://developer.android.com/develop/ 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系

Android Development. http://developer.android.com/develop/ 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系 Android Development http://developer.android.com/develop/ 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系 Android 3D 1. Design 2. Develop Training API Guides Reference 3. Distribute 2 Development Training Get Started Building

More information

Introduction to Android. CSG250 Wireless Networks Fall, 2008

Introduction to Android. CSG250 Wireless Networks Fall, 2008 Introduction to Android CSG250 Wireless Networks Fall, 2008 Outline Overview of Android Programming basics Tools & Tricks An example Q&A Android Overview Advanced operating system Complete software stack

More information

Developing In Eclipse, with ADT

Developing In Eclipse, with ADT Developing In Eclipse, with ADT Android Developers file://v:\android-sdk-windows\docs\guide\developing\eclipse-adt.html Page 1 of 12 Developing In Eclipse, with ADT The Android Development Tools (ADT)

More information

Android Development. Marc Mc Loughlin

Android Development. Marc Mc Loughlin Android Development Marc Mc Loughlin Android Development Android Developer Website:h:p://developer.android.com/ Dev Guide Reference Resources Video / Blog SeCng up the SDK h:p://developer.android.com/sdk/

More information

Android Programming: Installation, Setup, and Getting Started

Android Programming: Installation, Setup, and Getting Started 2012 Marty Hall Android Programming: Installation, Setup, and Getting Started Originals of Slides and Source Code for Examples: http://www.coreservlets.com/android-tutorial/ Customized Java EE Training:

More information

Installing the Android SDK

Installing the Android SDK Installing the Android SDK To get started with development, we first need to set up and configure our PCs for working with Java, and the Android SDK. We ll be installing and configuring four packages today

More information

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

Android Development Setup [Revision Date: 02/16/11] Android Development Setup [Revision Date: 02/16/11] 0. Java : Go to the URL below to access the Java SE Download page: http://www.oracle.com/technetwork/java/javase/downloads/index.html Select Java Platform,

More information

ADT Plugin for Eclipse

ADT Plugin for Eclipse ADT Plugin for Eclipse Android Development Tools (ADT) is a plugin for the Eclipse IDE that is designed to give you a powerful, integrated environment in which to build Android applications. ADT extends

More information

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

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM 5341. Eng. Wafaa Audah. Islamic University of Gaza Faculty of Engineering Computer Engineering Department Mobile Computing ECOM 5341 By Eng. Wafaa Audah June 2013 1 Setting Up the Development Environment and Emulator Part 1:

More information

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

directory to d:\myproject\android. Hereafter, I shall denote the android installed directory as 1 of 6 2011-03-01 12:16 AM yet another insignificant programming notes... HOME Android SDK 2.2 How to Install and Get Started Introduction Android is a mobile operating system developed by Google, which

More information

Running a Program on an AVD

Running a Program on an AVD Running a Program on an AVD Now that you have a project that builds an application, and an AVD with a system image compatible with the application s build target and API level requirements, you can run

More information

INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011

INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011 INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011 1 Goals of the Lecture Present an introduction to the Android Framework Coverage of the framework will be

More information

Android Tutorial. Larry Walters OOSE Fall 2011

Android Tutorial. Larry Walters OOSE Fall 2011 Android Tutorial Larry Walters OOSE Fall 2011 References This tutorial is a brief overview of some major concepts Android is much richer and more complex Developer s Guide http://developer.android.com/guide/index.html

More information

Fahim Uddin http://fahim.cooperativecorner.com email@fahim.cooperativecorner.com. 1. Java SDK

Fahim Uddin http://fahim.cooperativecorner.com email@fahim.cooperativecorner.com. 1. Java SDK PREPARING YOUR MACHINES WITH NECESSARY TOOLS FOR ANDROID DEVELOPMENT SEPTEMBER, 2012 Fahim Uddin http://fahim.cooperativecorner.com email@fahim.cooperativecorner.com Android SDK makes use of the Java SE

More information

Jordan Jozwiak November 13, 2011

Jordan Jozwiak November 13, 2011 Jordan Jozwiak November 13, 2011 Agenda Why Android? Application framework Getting started UI and widgets Application distribution External libraries Demo Why Android? Why Android? Open source That means

More information

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

Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen, 2013.06.18 Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Cuong Nguyen, 2013.06.18 Faculty of Technology, Postboks 203, Kjølnes ring

More information

How to build your first Android Application in Windows

How to build your first Android Application in Windows APPLICATION NOTE How to build your first Android Application in Windows 3/30/2012 Created by: Micah Zastrow Abstract This application note is designed to teach the reader how to setup the Android Development

More information

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

Reminders. Lab opens from today. Many students want to use the extra I/O pins on Reminders Lab opens from today Wednesday 4:00-5:30pm, Friday 1:00-2:30pm Location: MK228 Each student checks out one sensor mote for your Lab 1 The TA will be there to help your lab work Many students

More information

Mobile Security - Tutorial 1. Beginning Advanced Android Development Brian Ricks Fall 2014

Mobile Security - Tutorial 1. Beginning Advanced Android Development Brian Ricks Fall 2014 Mobile Security - Tutorial 1 Beginning Advanced Android Development Brian Ricks Fall 2014 Before we begin... I took your Wireless Network Security course in Spring... are you gonna have memes in this?

More information

Android Setup Phase 2

Android Setup Phase 2 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

More information

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

Android Development. Lecture AD 0 Android SDK & Development Environment. Università degli Studi di Parma. Mobile Application Development Android Development Lecture AD 0 Android SDK & Development Environment 2013/2014 Parma Università degli Studi di Parma Lecture Summary Android Module Overview The Android Platform Android Environment Setup

More information

Developing NFC Applications on the Android Platform. The Definitive Resource

Developing NFC Applications on the Android Platform. The Definitive Resource Developing NFC Applications on the Android Platform The Definitive Resource Part 1 By Kyle Lampert Introduction This guide will use examples from Mac OS X, but the steps are easily adaptable for modern

More information

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

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna SDK and initial setup: Outline Ø Today: How

More information

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

How To Run A Hello World On Android 4.3.3 (Jdk) On A Microsoft Ds.Io (Windows) Or Android 2.7.3 Or Android 3.5.3 On A Pc Or Android 4 ( Developing Android applications in Windows Below you will find information about the components needed for developing Android applications and other (optional) software needed to connect to the institution

More information

Android 4.4 App Development Essentials

Android 4.4 App Development Essentials Android 4.4 App Development Essentials Neil Smyth This book is for sale at http://leanpub.com/android44appdevelopmentessentials This version was published on 2014-02-15 This is a Leanpub book. Leanpub

More information

Android For Java Developers. Marko Gargenta Marakana

Android For Java Developers. Marko Gargenta Marakana Android For Java Developers Marko Gargenta Marakana Agenda Android History Android and Java Android SDK Hello World! Main Building Blocks Debugging Summary History 2005 Google buys Android, Inc. Work on

More information

CS378 -Mobile Computing. Android Overview and Android Development Environment

CS378 -Mobile Computing. Android Overview and Android Development Environment CS378 -Mobile Computing Android Overview and Android Development Environment What is Android? A software stack for mobile devices that includes An operating system Middleware Key Applications Uses Linux

More information

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release 12.0.3.0.0

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release 12.0.3.0.0 Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release 12.0.3.0.0 Part No. E52543-01 April 2014 Oracle Financial Services Software Limited Oracle Park Off Western Express Highway

More information

Mobile Application Development

Mobile Application Development Mobile Application Development (Android & ios) Tutorial Emirates Skills 2015 3/26/2015 1 What is Android? An open source Linux-based operating system intended for mobile computing platforms Includes a

More information

Android: How To. Thanks. Aman Nijhawan

Android: How To. Thanks. Aman Nijhawan Android: How To. This is just a collection of useful information and tricks that I used during the time I was developing on the android ADP1. In some cases the information might be a little old and new

More information

Lab 0 (Setting up your Development Environment) Week 1

Lab 0 (Setting up your Development Environment) Week 1 ECE155: Engineering Design with Embedded Systems Winter 2013 Lab 0 (Setting up your Development Environment) Week 1 Prepared by Kirill Morozov version 1.2 1 Objectives In this lab, you ll familiarize yourself

More information

Android Application Development

Android Application Development Android Application Development Self Study Self Study Guide Content: Course Prerequisite Course Content Android SDK Lab Installation Guide Start Training Be Certified Exam sample Course Prerequisite The

More information

5 reasons to choose Streamezzo SDK over Android SDK Page 2

5 reasons to choose Streamezzo SDK over Android SDK Page 2 The purpose of this document is to give an overview of issues frequently encountered by developers when deploying an application on multiple Android phones and how these issues can be solved by Streamezzo

More information

Frameworks & Android. Programmeertechnieken, Tim Cocx

Frameworks & Android. Programmeertechnieken, Tim Cocx Frameworks & Android Programmeertechnieken, Tim Cocx Discover thediscover world atthe Leiden world University at Leiden University Software maken is hergebruiken The majority of programming activities

More information

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

CS 528 Mobile and Ubiquitous Computing Lecture 2: Android Introduction and Setup. Emmanuel Agu CS 528 Mobile and Ubiquitous Computing Lecture 2: Android Introduction and Setup Emmanuel Agu What is Android? Android is world s leading mobile operating system Google: Owns Android, maintains it, extends

More information

How to Create an Android Application using Eclipse on Windows 7

How to Create an Android Application using Eclipse on Windows 7 How to Create an Android Application using Eclipse on Windows 7 Kevin Gleason 11/11/11 This application note is design to teach the reader how to setup an Android Development Environment on a Windows 7

More information

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

With a single download, the ADT Bundle includes everything you need to begin developing apps: Get the Android SDK The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. The ADT bundle includes the essential Android SDK components

More information

Introduction to Android Development

Introduction to Android Development 2013 Introduction to Android Development Keshav Bahadoor An basic guide to setting up and building native Android applications Science Technology Workshop & Exposition University of Nigeria, Nsukka Keshav

More information

AndroLIFT: A Tool for Android Application Life Cycles

AndroLIFT: A Tool for Android Application Life Cycles AndroLIFT: A Tool for Android Application Life Cycles Dominik Franke, Tobias Royé, and Stefan Kowalewski Embedded Software Laboratory Ahornstraße 55, 52074 Aachen, Germany { franke, roye, kowalewski}@embedded.rwth-aachen.de

More information

IOIO for Android Beginners Guide Introduction

IOIO for Android Beginners Guide Introduction IOIO for Android Beginners Guide Introduction This is the beginners guide for the IOIO for Android board and is intended for users that have never written an Android app. The goal of this tutorial is to

More information

Android Programming and Security

Android Programming and Security Android Programming and Security Dependable and Secure Systems Andrea Saracino andrea.saracino@iet.unipi.it Outlook (1) The Android Open Source Project Philosophy Players Outlook (2) Part I: Android System

More information

System Reference 2013

System Reference 2013 System Reference 2013 Content List of graphics...3 List of tables...4 1 Purpose of LynxSight...5 2 Setting up project...6 2.1 Project dependences...6 2.1.1 Operating system...6 2.1.2 Eclipse IDE...6 2.1.3

More information

Tutorial on Basic Android Setup

Tutorial on Basic Android Setup Tutorial on Basic Android Setup EE368/CS232 Digital Image Processing, Spring 2015 Windows Version Introduction In this tutorial, we will learn how to set up the Android software development environment

More information

Introduction to Android Development. Jeff Avery CS349, Mar 2013

Introduction to Android Development. Jeff Avery CS349, Mar 2013 Introduction to Android Development Jeff Avery CS349, Mar 2013 Overview What is Android? Android Architecture Overview Application Components Activity Lifecycle Android Developer Tools Installing Android

More information

Android Basics. Xin Yang 2016-05-06

Android Basics. Xin Yang 2016-05-06 Android Basics Xin Yang 2016-05-06 1 Outline of Lectures Lecture 1 (45mins) Android Basics Programming environment Components of an Android app Activity, lifecycle, intent Android anatomy Lecture 2 (45mins)

More information

Published: 2015-01-07 SWD-20150107143657691

Published: 2015-01-07 SWD-20150107143657691 Android User Guide Published: 2015-01-07 SWD-20150107143657691 Contents Getting started...7 Process overview...7 Register for a BlackBerry ID account... 8 Install an app repackaging tool... 9 Plug-in and

More information

Chapter 2 Getting Started

Chapter 2 Getting Started Welcome to Android Chapter 2 Getting Started Android SDK contains: API Libraries Developer Tools Documentation Sample Code Best development environment is Eclipse with the Android Developer Tool (ADT)

More information

OpenCV on Android Platforms

OpenCV on Android Platforms OpenCV on Android Platforms Marco Moltisanti Image Processing Lab http://iplab.dmi.unict.it moltisanti@dmi.unict.it http://www.dmi.unict.it/~moltisanti Outline Intro System setup Write and build an Android

More information

An Introduction to Android Application Development. Serdar Akın, Haluk Tüfekçi

An Introduction to Android Application Development. Serdar Akın, Haluk Tüfekçi An Introduction to Android Application Serdar Akın, Haluk Tüfekçi ARDIC ARGE http://www.ardictech.com April 2011 Environment Programming Languages Java (Officially supported) C (Android NDK Needed) C++

More information

Android 4.4 App Development Essentials

Android 4.4 App Development Essentials Android 4.4 App Development Essentials i Android 4.4 App Development Essentials First Edition ISBN-13: 978-1-4953580-6-7 2014 Neil Smyth. All Rights Reserved. This book is provided for personal use only.

More information

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android Why Android? ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android Dr Dimitris C. Dracopoulos A truly open, free development platform based on Linux and open source A component-based

More information

1) SETUP ANDROID STUDIO

1) SETUP ANDROID STUDIO 1) SETUP ANDROID STUDIO This process takes approximately 15-20 Minutes dependent upon internet speed and computer power. We will only be covering the install on Windows. System Requirements Android Studio

More information

Developing Android Apps: Part 1

Developing Android Apps: Part 1 : Part 1 d.schmidt@vanderbilt.edu www.dre.vanderbilt.edu/~schmidt Institute for Software Integrated Systems Vanderbilt University Nashville, Tennessee, USA CS 282 Principles of Operating Systems II Systems

More information

06 Team Project: Android Development Crash Course; Project Introduction

06 Team Project: Android Development Crash Course; Project Introduction M. Kranz, P. Lindemann, A. Riener 340.301 UE Principles of Interaction, 2014S 06 Team Project: Android Development Crash Course; Project Introduction April 11, 2014 Priv.-Doz. Dipl.-Ing. Dr. Andreas Riener

More information

Application Development Setup Guide

Application Development Setup Guide epos-print SDK for Android Application Development Setup Guide M00048500 Rev. A Cautions No part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means,

More information

Developing for MSI Android Devices

Developing for MSI Android Devices Android Application Development Enterprise Features October 2013 Developing for MSI Android Devices Majority is the same as developing for any Android device Fully compatible with Android SDK We test using

More information

Mocean Android SDK Developer Guide

Mocean Android SDK Developer Guide Mocean Android SDK Developer Guide For Android SDK Version 3.2 136 Baxter St, New York, NY 10013 Page 1 Table of Contents Table of Contents... 2 Overview... 3 Section 1 Setup... 3 What changed in 3.2:...

More information

1. Introduction to Android

1. Introduction to Android 1. Introduction to Android Brief history of Android What is Android? Why is Android important? What benefits does Android have? What is OHA? Why to choose Android? Software architecture of Android Advantages

More information

Mobile Applications Grzegorz Budzyń Lecture. 2: Android Applications

Mobile Applications Grzegorz Budzyń Lecture. 2: Android Applications Mobile Applications Grzegorz Budzyń Lecture 2: Android Applications Plan History and background Application Fundamentals Application Components Activities Services Content Providers Broadcast Receivers

More information

How to develop your own app

How to develop your own app How to develop your own app It s important that everything on the hardware side and also on the software side of our Android-to-serial converter should be as simple as possible. We have the advantage that

More information

Android Development Exercises Version - 2012.02. Hands On Exercises for. Android Development. v. 2012.02

Android Development Exercises Version - 2012.02. Hands On Exercises for. Android Development. v. 2012.02 Hands On Exercises for Android Development v. 2012.02 WARNING: The order of the exercises does not always follow the same order of the explanations in the slides. When carrying out the exercises, carefully

More information

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

How to Install Applications (APK Files) on Your Android Phone How to Install Applications (APK Files) on Your Android Phone Overview An Android application is stored in an APK file (i.e., a file named by {Application Name}.apk). You must install the APK on your Android

More information

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

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 Tutorial: Android Object API Application Development SAP Mobile Platform 2.3 DOCUMENT ID: DC01939-01-0230-01 LAST REVISED: March 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This publication

More information

Homeschool Programming, Inc.

Homeschool Programming, Inc. Printed Course Overview TeenCoder: Android Programming Course Title: TeenCoder: Android Programming Printed Course Syllabus and Planner Updated October, 2015 Textbook ISBN: 978-0-9830749-8-4, published

More information

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

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna SDK and initial setup: Outline Today: How to

More information

Introduction to Android

Introduction to Android Introduction to Android Poll How many have an Android phone? How many have downloaded & installed the Android SDK? How many have developed an Android application? How many have deployed an Android application

More information

Android Development Tools for Eclipse

Android Development Tools for Eclipse Android Development Tools for Eclipse Sanjay Shah Khirulnizam Abd Rahman Chapter No. 1 "Installing Eclipse, ADT, and SDK" In this package, you will find: A Biography of the author of the book A preview

More information

How To Develop Android On Your Computer Or Tablet Or Phone

How To Develop Android On Your Computer Or Tablet Or Phone AN INTRODUCTION TO ANDROID DEVELOPMENT CS231M Alejandro Troccoli Outline Overview of the Android Operating System Development tools Deploying application packages Step-by-step application development The

More information

Building an Android client. Rohit Nayak Talentica Software

Building an Android client. Rohit Nayak Talentica Software Building an Android client Rohit Nayak Talentica Software Agenda iphone and the Mobile App Explosion How mobile apps differ Android philosophy Development Platform Core Android Concepts App Demo App Dissection

More information

Android Environment Emulator

Android Environment Emulator Part 2-b Android Environment Emulator Victor Matos Cleveland State University Notes are based on: http://developer.android.com/index.html http://developer.android.com/guide/developing/tools/emulator.html

More information

Q1. What method you should override to use Android menu system?

Q1. What method you should override to use Android menu system? AND-401 Exam Sample: Q1. What method you should override to use Android menu system? a. oncreateoptionsmenu() b. oncreatemenu() c. onmenucreated() d. oncreatecontextmenu() Answer: A Q2. What Activity method

More information

Технологии Java. Android: Введение. Кузнецов Андрей Николаевич. Санкт-Петербургский Государственный Политехнический Университет

Технологии Java. Android: Введение. Кузнецов Андрей Николаевич. Санкт-Петербургский Государственный Политехнический Университет Технологии Java Android: Введение Санкт-Петербургский Государственный Политехнический Университет Кузнецов Андрей Николаевич 1 2 Архитектура ОС Android See http://www.android-app-market.com/android-architecture.html

More information

Login with Amazon Getting Started Guide for Android. Version 2.0

Login with Amazon Getting Started Guide for Android. Version 2.0 Getting Started Guide for Android Version 2.0 Login with Amazon: Getting Started Guide for Android Copyright 2016 Amazon.com, Inc., or its affiliates. All rights reserved. Amazon and the Amazon logo are

More information

Programming with Android

Programming with Android Praktikum Mobile und Verteilte Systeme Programming with Android Prof. Dr. Claudia Linnhoff-Popien Philipp Marcus, Mirco Schönfeld http://www.mobile.ifi.lmu.de Sommersemester 2015 Programming with Android

More information

Hacking your Droid ADITYA GUPTA

Hacking your Droid ADITYA GUPTA Hacking your Droid ADITYA GUPTA adityagupta1991 [at] gmail [dot] com facebook[dot]com/aditya1391 Twitter : @adi1391 INTRODUCTION After the recent developments in the smart phones, they are no longer used

More information

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

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Download and Installation Instructions for Android SDK and Android Development Tools (ADT) on Mac OS X Updated October, 2012 This document will describe how to download and install the Android SDK and

More information

Android Application Development: Hands- On. Dr. Jogesh K. Muppala muppala@cse.ust.hk

Android Application Development: Hands- On. Dr. Jogesh K. Muppala muppala@cse.ust.hk Android Application Development: Hands- On Dr. Jogesh K. Muppala muppala@cse.ust.hk Wi-Fi Access Wi-Fi Access Account Name: aadc201312 2 The Android Wave! 3 Hello, Android! Configure the Android SDK SDK

More information

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

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows Download and Installation Instructions for Android SDK and Android Development Tools (ADT) on Microsoft Windows Updated May, 2012 This document will describe how to download and install the Android SDK

More information

Getting Started with Android Programming (5 days) with Android 4.3 Jelly Bean

Getting Started with Android Programming (5 days) with Android 4.3 Jelly Bean Getting Started with Android Programming (5 days) with Android 4.3 Jelly Bean Course Description Getting Started with Android Programming is designed to give students a strong foundation to develop apps

More information

Table of Contents. Adding Build Targets to the SDK 8 The Android Developer Tools (ADT) Plug-in for Eclipse 9

Table of Contents. Adding Build Targets to the SDK 8 The Android Developer Tools (ADT) Plug-in for Eclipse 9 SECOND EDITION Programming Android kjj *J} Zigurd Mednieks, Laird Dornin, G. Blake Meike, and Masumi Nakamura O'REILLY Beijing Cambridge Farnham Koln Sebastopol Tokyo Table of Contents Preface xiii Parti.

More information

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

Android: Setup Hello, World: Android Edition. due by noon ET on Wed 2/22. Ingredients. Android: Setup Hello, World: Android Edition due by noon ET on Wed 2/22 Ingredients. Android Development Tools Plugin for Eclipse Android Software Development Kit Eclipse Java Help. Help is available throughout

More information

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

WA1826 Designing Cloud Computing Solutions. Classroom Setup Guide. Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1 WA1826 Designing Cloud Computing Solutions Classroom Setup Guide Web Age Solutions Inc. Copyright Web Age Solutions Inc. 1 Table of Contents Part 1 - Minimum Hardware Requirements...3 Part 2 - Minimum

More information

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

Home Course Catalog Schedule Pricing & Savings Training Options Resources About Us 1 of 14 12/04/2012 06:46 PM Hello, Jonathan Earl My Account Logout GS-35F-0556S CONTACT US Search TOLL FREE 877-932-8228 Home Course Catalog Schedule Pricing & Savings Training Options Resources About

More information

Android Fundamentals 1

Android Fundamentals 1 Android Fundamentals 1 What is Android? Android is a lightweight OS aimed at mobile devices. It is essentially a software stack built on top of the Linux kernel. Libraries have been provided to make tasks

More information