Android. Mobile Computing Design and Implementation. Application Components, Sensors. Peter Börjesson



Similar documents
Sensors & Motion Sensors in Android platform. Minh H Dang CS286 Spring 2013

Using Sensors on the Android Platform. Andreas Terzis Android N00b

Android Sensor Programming. Weihong Yu

Android Sensors. XI Jornadas SLCENT de Actualización Informática y Electrónica

Lecture 17: Mobile Computing Platforms: Android. Mythili Vutukuru CS 653 Spring 2014 March 24, Monday

Android Sensors. CPRE 388 Fall 2015 Iowa State University

06 Team Project: Android Development Crash Course; Project Introduction

Programming Mobile Applications with Android

E0-245: ASP. Lecture 16+17: Physical Sensors. Dipanjan Gope

Android app development course

ANDROID BASED MOBILE APPLICATION DEVELOPMENT and its SECURITY

Internal Services. CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. Rajiv Ramnath

The Android Platform

A Short Introduction to Android

Objective. Android Sensors. Sensor Manager Sensor Types Examples. Page 2

Graduate presentation for CSCI By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu )

Building an Android client. Rohit Nayak Talentica Software

Using the Android Sensor API

! Sensors in Android devices. ! Motion sensors. ! Accelerometer. ! Gyroscope. ! Supports various sensor related tasks

Android Application Development. Daniel Switkin Senior Software Engineer, Google Inc.

An Introduction to Android

Android (Basic + Advance) Application Development

Android app development course

Programming with Android

Android Framework. How to use and extend it

CS 403X Mobile and Ubiquitous Computing Lecture 6: Maps, Sensors, Widget Catalog and Presentations Emmanuel Agu

Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months

Android Programming Lecture 18: Menus Sensors 11/11/2011

Android Security. Giovanni Russello

COURSE CONTENT. GETTING STARTED Select Android Version Create RUN Configuration Create Your First Android Activity List of basic sample programs

Mobile applications security Android OS (case study) Maciej Olewiński. Cryptographic Seminar r.

ANDROID PROGRAMMING - INTRODUCTION. Roberto Beraldi

Android For Java Developers. Marko Gargenta Marakana

Developing Sensor Applications on Intel Atom Processor-Based Android* Phones and Tablets

ITG Software Engineering

Android Developer Fundamental 1

Android Application Development

Introduction to Android Development. Jeff Avery CS349, Mar 2013

Android Basics. Xin Yang

ANDROID PROGRAMMING - INTRODUCTION. Roberto Beraldi

Can the app be installed on the device? Does the app behave as designed/desired if there is an incoming call?

Android in Action. Second Edition. Revised Edition of Unlocking Android MANNING. (74 w. long.) W. FRANK ABLESON CHRIS KING ROBI SEN.

Android Geek Night. Application framework

1. Introduction to Android

Jordan Jozwiak November 13, 2011

App Development for Smart Devices. Lec #5: Android Sensors

ELET4133: Embedded Systems. Topic 15 Sensors

Lab 1 (Reading Sensors & The Android API) Week 3

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

CSE476 Mobile Application Development. Yard. Doç. Dr. Tacha Serif Department of Computer Engineering Yeditepe University

Here to take you beyond Mobile Application development using Android Course details

CLOUD BASED FILE SYSTEM ON MOBILE DEVICES. A Thesis. Presented to the. Faculty of. San Diego State University. In Partial Fulfillment

NFC in Android. Martijn Coenen

INTERMEDIATE ANDROID DEVELOPMENT Course Syllabus

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

Overview of CS 282 & Android

Creating and Using Databases for Android Applications

ANDROID INTRODUCTION TO ANDROID

Introduction to Android

Performance issues in writing Android Apps

Google Android Syllabus

APPFORUM2014. Helping the developer community build next-generation, multi-platform apps. SCHAUMBURG, ILLINOIS SEPTEMBER 8-10

App Development for Android. Prabhaker Matet

Developer's Cookbook. Building Applications with. The Android. the Android SDK. A Addison-Wesley. James Steele Nelson To

Obsoleted chapter from The Busy Coder's Guide to Advanced Android Development

Android Concepts and Programming TUTORIAL 1

Programming with Android: System Architecture. Dipartimento di Scienze dell Informazione Università di Bologna

Lecture 1 Introduction to Android

Android Application Development Lecture Notes INDEX

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

4 Application Development

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

Module 1: Sensor Data Acquisition and Processing in Android

«compl*tc IDIOT'S GUIDE. Android App. Development. by Christopher Froehlich ALPHA. A member of Penguin Group (USA) Inc.

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

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

Praktikum Entwicklung von Mediensystemen (Android)

Android on Intel Course App Development - Advanced

Contents. New features. Getting started. Entertainment. Transferring data. Managing your phone. Tools

ECE 455/555 Embedded System Design. Android Programming. Wei Gao. Fall

Iotivity Programmer s Guide Soft Sensor Manager for Android

Easy to send multiple text messages using Android Bulk SMS Software

Understanding Android s Security Framework

Introduction to Android Programming (CS5248 Fall 2015)

Published : License : None

WebSphere Commerce V7 Feature Pack 3

Workshop on Android and Applications Development

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

Introducing Mobile Application Development for Android. Presented by: Ahmed Misbah

Mobile Applications Grzegorz Budzyń Lecture. 2: Android Applications

Transcription:

Android Application Components, Sensors Mobile Computing Design and Implementation Peter Börjesson

Application Sandbox Android System & Device Data Contacts, Messages, SD Card, Camera, Bluetooth, etc. Android Manifest Android Manifest Application A Application B Application ID Dalvik VM Process Application ID Dalvik VM Process

Application Components Activities Services Activated by Intents Broadcast Receivers Content Providers

Intents - Anatomy ComponentName Action Data Category Type Extras

Intents - ComponentName Class Name com.example.project.details.myactivitiy. Package Name (from Android Manifest) com.example.project Do not set this attribute unless you are absolutely sure about which component that should handle the intent. The system will decide for you. If this attribute is set, all other intent attributes become optional

Intents - Action and Data Action ACTION_VIEW, ACTION_DIAL, ACTION_EDIT Data (expressed as Uri) content://contacts/people/1 tel:123 Action and Data are the primary pieces of information in an intent.

Intents Category and Type Category CATEGORY_LAUNCHER CATEGORY_DEFAULT CATEGORY_BROWSABLE Type (MIME, usually inferred by the data itself) image/jpeg audio/mpeg text/html

Intents Extras Bundle intent.putextras(bundle); Bundle bundle = intent.getextras(); putextra & getextra intent.putextra( mytag1, 12); Intent.putExtra( mytag2, Peter ); int i = intent.getintextra( mytag1, -1); String s = intent.getstringextra( mytag );

Implicit intents Android System & Device Data Contacts, Messages, SD Card, Camera, Bluetooth, etc. Intent An application can have many entry points Camera Application Email Application Inbox Activity Read Mail Actitivity Compose Mail Activity

Implicit intents - Example Send SMS Send E-mail

Services Android System & Device Data Contacts, Messages, SD Card, Camera, Bluetooth, etc. Intent Play Music Service Music Player A service can run in the background, independent of activities

Services - Lifecycle

Services - Example Start Service Stop Service Android Manifest

Broadcast Receivers Android System & Device Data Contacts, Messages, SD Card, Camera, Bluetooth, etc. Intent Many Broadcasts originate from the system but can also be initiated by an application Application A Application A Application A

Broadcast Receivers - Example

Content Providers Android System & Device Data Contacts, Messages, SD Card, Camera, Bluetooth, etc. Contacts Browser CallLog MediaStore Settings Query content://contacts/people/2 Email Application Both the Android System and other applications can provide content.

Sensors

Sensors SensorManager Create an instance of the sensor service. Manage sensors sensor eventlisteners. Sensor Create an instance of a specific Senor SensorEvent Used by the system to provide information about a sensorevent SensorEventListener Interface to receive notification of sensor value and sensor accuracy changes

Sensors - SensorEventListener OnAccuracyChanged(Sensor sensor, int accuracy) Low, Medium, High, Unreliable OnSensorChanged(SensorEvent event) accuracy, sensor, timestamp, values

Sensors

Sensors Tips Don t test on the emulator Don't block the onsensorchanged() method Filter or reduce data outside of this method Avoid using deprecated methods or sensor types Verify sensors before you use them Choose sensor delays carefully Unregister sensor when not needed anymore