Android Sensors. CPRE 388 Fall 2015 Iowa State University

Size: px
Start display at page:

Download "Android Sensors. CPRE 388 Fall 2015 Iowa State University"

Transcription

1 Android Sensors CPRE 388 Fall 2015 Iowa State University

2 What are sensors? Sense and measure physical and ambient conditions of the device and/or environment Measure motion, touch pressure, orientation, environmental conditions, gravity Example Motion measurement (gestures) Tilt, rotate, toss, swing Can use for interactive games to change animation characteristics in response to type of motion Example Accelerometer and geomagnetic field sensor to infer direction in a compass or travel app

3 Sensors in Android Three major categories Motion Sensors Measures acceleration and rotation along three axes Example accelerometers, gravity sensors, gyroscopes, and rotational vector sensors Environmental sensors Measures environmental parameters ambient air temperature and pressure, illumination, and humidity. Position sensors Measures the physical position of a device orientation sensors and magnetometers

4 Sensors in Android Two types Hardware sensors Physical components built into the device Data derived by direct measurement Accelerometer, Ambient temperature Software or Virtual sensors Not physical devices but mimic hardware based sensors Data derived from one or more hardware sensors Linear acceleration sensor, gravity sensor

5 Sensor Type Description Common Uses TYPE_ACCELEROMETER TYPE_AMBIENT_TEMPER ATURE TYPE_GRAVITY TYPE_GYROSCOPE TYPE_LIGHT Hardware Hardware Software or Hardware Hardware Hardware Measures the acceleration force in m/s 2 that is applied to a device on all three physical axes (x, y, and z), including the force of gravity. Measures the ambient room temperature in degrees Celsius ( C). See note below. Measures the force of gravity in m/s 2 that is applied to a device on all three physical axes (x, y, z). Measures a device's rate of rotation in rad/s around each of the three physical axes (x, y, and z). Measures the ambient light level (illumination) in lx. Motion detection (shake, tilt, etc.). Monitoring air temperatures. Motion detection (shake, tilt, etc.). Rotation detection (spin, turn, etc.). Controlling screen brightness.

6 TYPE_LINEAR_ACCELERAT ION Software or Hardware Measures the acceleration force in m/s 2 that is applied to a device on all three physical axes (x, y, and z), excluding the force of gravity. Monitoring acceleration along a single axis. TYPE_MAGNETIC_FIELD Hardware Measures the ambient geomagnetic field for all three physical axes (x, y, z) in μt. Creating a compass. TYPE_ORIENTATION Software Measures degrees of rotation that a device makes around all three physical axes (x, y, z). As of API level 3 you can obtain the inclination matrix and rotation matrix for a device by using the gravity sensor and the geomagnetic field sensor in conjunction with the getrotationmatrix() method. Determining device position.

7 Android Sensor Framework Get raw data from sensors Change sensor parameters Sampling frequency Determine which sensors are available Determine sensor's specs Manufacturer, resolution, power needs Set up sensor event listeners to monitor changes

8 Android sensor framework Part of android.hardware package Classes and interfaces to access sensors

9 Android sensor framework classes SensorManager class to create an instance of the sensor service methods for accessing and listing sensors registering and unregistering sensor event listeners Determine sensor accuracy, set data acquisition rates, and calibrate sensors Sensor create an instance of a specific sensor determine a sensor's capabilities

10 Android sensor framework classes SensorEvent create a sensor event object provide the raw sensor data, the type of sensor that generated the event, the accuracy of the data, and the timestamp for the event SensorEventListener Two callback methods methods called when receiving notifications (sensor events) when sensor values change or when sensor accuracy changes

11 Primary API functionality Identifying sensors and sensor capabilities identify all of the sensors that are present on a device disable app features which rely on unavailable sensors Monitor sensor events acquire raw sensor data sensor event occurs every time a sensor detects a change in the parameters it is measuring Four parameters per event name of the sensor that triggered the event timestamp for the event accuracy of the event raw sensor data that triggered the event.

12 What sensors are in my device? Identify sensors get a reference to the system sensor service List all the sensors Instance of sensor service private SensorManager msensormanager; msensormanager = (SensorManager) getsystemservice(context.sensor_service); List<Sensor> devicesensors = msensormanager.getsensorlist(sensor.type_all); List all the sensors in the device

13 What sensors are in my device? is there a default sensor of the given type? If there is more than one sensor of a type, one of them is designated as default. if (msensormanager.getdefaultsensor(sensor.type_magnetic_field)!= null){ // Success! There's a magnetometer. TYPE_GYROSCOPE, TYPE_LINEAR_ACCELERATION, or TYPE_GRAVITY

14 Sensor Capabilities & Attributes Sensor class public methods to determine the capabilities and attributes of individual sensors. Useful if you want your application to behave differently based on which sensors or sensor capabilities are available on a device. getresolution(), getmaximumrange(), getpower()

15 msensormanager = (SensorManager) getsystemservice(context.sensor_service); if (msensormanager.getdefaultsensor(sensor.type_gravity)!= null){ List<Sensor> gravsensors = msensormanager.getsensorlist(sensor.type_gravity); for(int i=0; i<gravsensors.size(); i++) { if ((gravsensors.get(i).getvendor().contains("google Inc.")) && (gravsensors.get(i).getversion() == 3)){ // Use the version 3 gravity sensor. msensor = gravsensors.get(i);

16 else{ // Use the accelerometer. if (msensormanager.getdefaultsensor(sensor.type_accelerometer)!= null){ msensor = msensormanager.getdefaultsensor(sensor.type_accelerometer); else{ // Sorry, there are no accelerometers on your device. // You can't play this game.

17 Monitor sensor events implement two callback methods onaccuracychanged() and onsensorchanged() exposed through the SensorEventListener interface sensor's accuracy changes system invokes the onaccuracychanged() method reference to the Sensor object that changed the new accuracy of the sensor Accuracy is represented by one of four status constants: SENSOR_STATUS_ACCURACY_LOW, SENSOR_STATUS_ACCURACY_ME DIUM, SENSOR_STATUS_ACCURACY_HIGH, or SENSOR_STATUS_UNRELIABLE sensor reports a new value system invokes the onsensorchanged() method reference to SensorEvent object contains information about the new sensor data

18 public class SensorActivity extends Activity implements SensorEventListener { private SensorManager msensormanager; private Sensor public final void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.main); msensormanager = (SensorManager) getsystemservice(context.sensor_service); mlight = msensormanager.getdefaultsensor(sensor.type_light);

19 Monitor sensor public final void onaccuracychanged(sensor sensor, int accuracy) { // Do something here if sensor accuracy public final void onsensorchanged(sensorevent event) { // The light sensor returns a single value. // Many sensors return 3 values, one for each axis. float lux = event.values[0]; // Do something with this sensor value. Reference to Sensor object Reference to Sensor event object raw data, time stamp, accuracy, type of sensor

20 @Override protected void onresume() { super.onresume(); msensormanager.registerlistener(this, mlight, protected void onpause() { super.onpause(); msensormanager.unregisterlistener(this); int SENSOR_DELAY_FASTEST int SENSOR_DELAY_GAME int SENSOR_DELAY_NORMAL int SENSOR_DELAY_UI get sensor data as fast as possible (0 µs) rate suitable for games (20000 µs) rate (default) suitable for screen orientation changes ( µs) rate suitable for the user interface (60000 µs)

21 Detecting Sensor at Run Time private SensorManager msensormanager;... msensormanager = (SensorManager) getsystemservice(context.sensor_service); if (msensormanager.getdefaultsensor(sensor.type_pressure)!= null){ // Success! There's a pressure sensor. else { // Failure! No pressure sensor. Disable the UI that depends on pressure sensor

22 Uses Feature For google play, use uses feature in manifest <uses feature android:name="android.hardware.sensor.accelerometer" android:required="true" />

23 Sensor Coordinate System sensor framework uses a standard 3 axis coordinate system coordinate system is defined relative to the device's screen device is held in its default orientation default orientation the X axis is horizontal and points to the right the Y axis is vertical and points up the Z axis points toward the outside of the screen face. ve Z coordinates behind the screen the sensor's coordinate system never changes as the device moves Accelerometer, Gyroscope, gravity sensor, linear acceleration sensor, geomagnetic field sensor

24 Putting it all together Accelerometer public class sensorexample extends Activity implements SensorEventListener { private SensorManager sensensormanager; private Sensor protected void oncreate(bundle savedinstancestate) { Reference to system sensor service Reference to default accelerometer Need to check if it exists super.oncreate(savedinstancestate); setcontentview(r.layout.activity_sensorexample); sensensormanager = (SensorManager) getsystemservice(context.sensor_service); senaccelerometer = sensensormanager.getdefaultsensor(sensor.type_accelerometer); sensensormanager.registerlistener(this, senaccelerometer, SensorManager.SENSOR_DELAY_NORMAL); Register the listener to call back when sensor event occurs

25 Called when accelerometer registers a new event such as motion along any public void onsensorchanged(sensorevent sensorevent) { Sensor mysensor = sensorevent.sensor; if (mysensor.gettype() == Sensor.TYPE_ACCELEROMETER) { float x = sensorevent.values[0]; Acceleration values along float y = sensorevent.values[1]; the three axis float z = public void onaccuracychanged(sensor sensor, int accuracy) {

26 protected void onpause() { super.onpause(); sensensormanager.unregisterlistener(this); Important Sensors drain battery resource. Sensors keep acquiring data during onpause if not unregistered Re register Sensorevent listener to continue acquiring data during onresume protected void onresume() { super.onresume(); sensensormanager.registerlistener(this, senaccelerometer, SensorManager.SENSOR_DELAY_NORMAL);

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

Android Sensors. XI Jornadas SLCENT de Actualización Informática y Electrónica Android Sensors XI Jornadas SLCENT de Actualización Informática y Electrónica About me José Juan Sánchez Hernández Android Developer (In my spare time :) Member and collaborator of: - Android Almería Developer

More information

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

Sensors & Motion Sensors in Android platform. Minh H Dang CS286 Spring 2013 Sensors & Motion Sensors in Android platform Minh H Dang CS286 Spring 2013 Sensors The Android platform supports three categories of sensors: Motion sensors: measure acceleration forces and rotational

More information

Android Sensor Programming. Weihong Yu

Android Sensor Programming. Weihong Yu Android Sensor Programming Weihong Yu Sensors Overview The Android platform is ideal for creating innovative applications through the use of sensors. These built-in sensors measure motion, orientation,

More information

Android Sensors. Mobile Applica1ons Jay Urbain, Ph.D. Credits:

Android Sensors. Mobile Applica1ons Jay Urbain, Ph.D. Credits: Android Sensors Credits: Mobile Applica1ons Jay Urbain, Ph.D. Meier, Reto, Professional Android 4 Applica1on Development. hbp://developer.android.com/guide/topics/sensors/sensors_overview.html hbp://developer.android.com/guide/topics/sensors/sensors_overview.html

More information

Using the Android Sensor API

Using the Android Sensor API Using the Android Sensor API Juan José Marrón Department of Computer Science & Engineering jmarronm@mail.usf.edu # Outline Sensors description: - Motion Sensors - Environmental Sensors - Positioning Sensors

More information

Android Framework. How to use and extend it

Android Framework. How to use and extend it Android Framework How to use and extend it Lectures 9/10 Android Security Security threats Security gates Android Security model Bound Services Complex interactions with Services Alberto Panizzo 2 Lecture

More information

Sensors. Marco Ronchetti Università degli Studi di Trento

Sensors. Marco Ronchetti Università degli Studi di Trento 1 Sensors Marco Ronchetti Università degli Studi di Trento Sensor categories Motion sensors measure acceleration forces and rotational forces along three axes. This category includes accelerometers, gravity

More information

ELET4133: Embedded Systems. Topic 15 Sensors

ELET4133: Embedded Systems. Topic 15 Sensors ELET4133: Embedded Systems Topic 15 Sensors Agenda What is a sensor? Different types of sensors Detecting sensors Example application of the accelerometer 2 What is a sensor? Piece of hardware that collects

More information

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

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL II) Sensor Overview ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL II) Lecture 5: Sensor and Game Development Most Android-powered devices have built-in sensors that measure motion, orientation,

More information

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

CS 403X Mobile and Ubiquitous Computing Lecture 6: Maps, Sensors, Widget Catalog and Presentations Emmanuel Agu CS 403X Mobile and Ubiquitous Computing Lecture 6: Maps, Sensors, Widget Catalog and Presentations Emmanuel Agu Using Maps Introducing MapView and Map Activity MapView: UI widget that displays maps MapActivity:

More information

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

Developing Sensor Applications on Intel Atom Processor-Based Android* Phones and Tablets Developing Sensor Applications on Intel Atom Processor-Based Android* Phones and Tablets This guide provides application developers with an introduction to the Android Sensor framework and discusses how

More information

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

Objective. Android Sensors. Sensor Manager Sensor Types Examples. Page 2 Android Sensors Objective Android Sensors Sensor Manager Sensor Types Examples Page 2 Android.hardware Support for Hardware classes with some interfaces Camera: used to set image capture settings, start/stop

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

Android. Learning Android Marko Gargenta. Tuesday, March 11, 14

Android. Learning Android Marko Gargenta. Tuesday, March 11, 14 Android Learning Android Marko Gargenta Materials Sams Teach Yourself Android Application Development in 24 Hours (Amazon) Android Apps for Absolute Beginners (Amazon) Android Development Tutorial (http://

More information

Using Sensors on the Android Platform. Andreas Terzis Android N00b

Using Sensors on the Android Platform. Andreas Terzis Android N00b Using Sensors on the Android Platform Andreas Terzis Android N00b Hardware-oriented Features Feature Camera Sensor SensorManager SensorEventListener SensorEvent GeoMagneticField Description A class that

More information

jsug.at University of Technology Vienna October 25 th 2010 Android Sensors by Stefan Varga, Michal Kostic touchqode.com

jsug.at University of Technology Vienna October 25 th 2010 Android Sensors by Stefan Varga, Michal Kostic touchqode.com jsug.at University of Technology Vienna October 25 th 2010 Android Sensors by Stefan Varga, Michal Kostic touchqode.com Why sensors? 2 3 4 Applications Resizing screen / tilt Environment adjustment of

More information

Android. Lecture 1. Learning Android Marko Gargenta. Friday, March 22, 13

Android. Lecture 1. Learning Android Marko Gargenta. Friday, March 22, 13 Android Lecture 1 Learning Android Marko Gargenta Final Project Jan/Feb: ARM March: Android Apr: Final project Complexity Sense the world Analysis Service delivery Hands-on A fun project built-up through

More information

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

! Sensors in Android devices. ! Motion sensors. ! Accelerometer. ! Gyroscope. ! Supports various sensor related tasks CSC 472 / 372 Mobile Application Development for Android Prof. Xiaoping Jia School of Computing, CDM DePaul University xjia@cdm.depaul.edu @DePaulSWEng Outline Sensors in Android devices Motion sensors

More information

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

E0-245: ASP. Lecture 16+17: Physical Sensors. Dipanjan Gope E0-245: ASP Lecture 16+17: Physical Sensors Module 2: Android Sensor Applications Location Sensors - Theory of location sensing - Package android.location Physical Sensors - Sensor Manager - Accelerometer

More information

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

App Development for Smart Devices. Lec #5: Android Sensors App Development for Smart Devices CS 495/595 - Fall 2012 Lec #5: Android Sensors Tamer Nadeem Dept. of Computer Science Objective Working in Background Sensor Manager Examples Sensor Types Page 2 What

More information

Programming Mobile Applications with Android

Programming Mobile Applications with Android Programming Mobile Applications 22-26 September, Albacete, Spain Jesus Martínez-Gómez Introduction to advanced android capabilities Maps and locations.- How to use them and limitations. Sensors.- Using

More information

Using Extensions or Cordova Plugins in your RhoMobile Application Darryn Campbell @darryncampbell

Using Extensions or Cordova Plugins in your RhoMobile Application Darryn Campbell @darryncampbell Using Extensions or Cordova Plugins in your RhoMobile Application Darryn Campbell @darryncampbell Application Architect Agenda Creating a Rho Native Extension on Android Converting a Cordova Plugin to

More information

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

Obsoleted chapter from The Busy Coder's Guide to Advanced Android Development CHAPTER 13 "" is Android's overall term for ways that Android can detect elements of the physical world around it, from magnetic flux to the movement of the device. Not all devices will have all possible

More information

Android app development course

Android app development course Android app development course Unit 7- + Beyond Android Activities. SMS. Audio, video, camera. Sensors 1 SMS We can send an SMS through Android's native client (using an implicit Intent) Intent smsintent

More information

Module 1: Sensor Data Acquisition and Processing in Android

Module 1: Sensor Data Acquisition and Processing in Android Module 1: Sensor Data Acquisition and Processing in Android 1 Summary This module s goal is to familiarize students with acquiring data from sensors in Android, and processing it to filter noise and to

More information

( Modified from Original Source at http://www.devx.com/wireless/article/39239 )

( Modified from Original Source at http://www.devx.com/wireless/article/39239 ) Accessing GPS information on your Android Phone ( Modified from Original Source at http://www.devx.com/wireless/article/39239 ) Using Eclipse, create a new Android project and name it GPS.java. To use

More information

Fitness Motion Recognition

Fitness Motion Recognition Fitness Motion Recognition with Android Wear Edward Dale Freeletics Edward Dale, 2015 1 http://www.someecards.com/usercards/viewcard/mjaxmy1hmjiwmwuzmtc4ndgyota1 Edward Dale, 2015 2 Agenda Define scope

More information

Location and Sensors

Location and Sensors Location and Sensors Masumi Nakamura Location Manifest android.permission.access_coarse_location android.permission.access_fine_location Package android.location.* LOCATION_SERVICE (LocationManager) context.getsystemservice(context.location_service);

More information

Android Concepts and Programming TUTORIAL 1

Android Concepts and Programming TUTORIAL 1 Android Concepts and Programming TUTORIAL 1 Kartik Sankaran kar.kbc@gmail.com CS4222 Wireless and Sensor Networks [2 nd Semester 2013-14] 20 th January 2014 Agenda PART 1: Introduction to Android - Simple

More information

PROGRAMMING IN ANDROID. IOANNIS (JOHN) PAPAVASILEIOU OCTOBER 24 2013 papabasile@engr.uconn.edu

PROGRAMMING IN ANDROID. IOANNIS (JOHN) PAPAVASILEIOU OCTOBER 24 2013 papabasile@engr.uconn.edu PROGRAMMING IN ANDROID IOANNIS (JOHN) PAPAVASILEIOU OCTOBER 24 2013 papabasile@engr.uconn.edu WHAT IS IT Software platform Operating system Key apps Developers: Google Open Handset Alliance Open Source

More information

Designing An Android Sensor Subsystem Pitfalls and Considerations

Designing An Android Sensor Subsystem Pitfalls and Considerations Designing An Android Sensor Subsystem Pitfalls and Considerations Jen Costillo jen@rebelbot.com Simple Choices User experience Battery performance 7/15/2012 Costillo- OSCON 2012 2 Established or Innovative

More information

Sensors CS 4720 Web & Mobile Systems

Sensors CS 4720 Web & Mobile Systems Sensors Web & Mobile Systems Sensor Categories Android sensors as separated into one of three broad categories: Motion sensors measure force and rotation Environmental sensors measure parameters such as

More information

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

Android Programming Lecture 18: Menus Sensors 11/11/2011 Android Programming Lecture 18: Menus Sensors 11/11/2011 Simple Menu Example Submenu Example Sensors and Actuators Sensors Sensors provide information about the device and its environment Will ignore camera

More information

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

Lab 1 (Reading Sensors & The Android API) Week 3 ECE155: Engineering Design with Embedded Systems Winter 2013 Lab 1 (Reading Sensors & The Android API) Week 3 Prepared by Kirill Morozov version 1.1 Deadline: You must submit the lab to the SVN repository

More information

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

Arduino & Android. A How to on interfacing these two devices. Bryant Tram Arduino & Android A How to on interfacing these two devices Bryant Tram Contents 1 Overview... 2 2 Other Readings... 2 1. Android Debug Bridge -... 2 2. MicroBridge... 2 3. YouTube tutorial video series

More information

Mobile applications can benefit from being location-aware This mean to allow application to determine and manipulate location For example:

Mobile applications can benefit from being location-aware This mean to allow application to determine and manipulate location For example: SENSORS Location service Mobile applications can benefit from being location-aware This mean to allow application to determine and manipulate location For example: find stores nead my current location

More information

Tegra Android Accelerometer Whitepaper

Tegra Android Accelerometer Whitepaper Tegra Android Accelerometer Whitepaper Version 5-1 - Contents INTRODUCTION 3 COORDINATE SPACE GLOSSARY 4 ACCELEROMETER CANONICAL AXES 6 WORKING WITH ACCELEROMETER DATA 7 POWER CONSERVATION 10 SUPPORTING

More information

HP TouchPad Sensor Setup for Android

HP TouchPad Sensor Setup for Android HP TouchPad Sensor Setup for Android Coordinate System The Android device framework uses a 3-axis coordinate system to express data values. For the following HP TouchPad sensors, the coordinate system

More information

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

Graduate presentation for CSCI 5448. By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu ) Graduate presentation for CSCI 5448 By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu ) Content What is Android?? Versions and statistics Android Architecture Application Components Inter Application

More information

Performance issues in writing Android Apps

Performance issues in writing Android Apps Performance issues in writing Android Apps Octav Chipara The process of developing Android apps problem definition focus: define the problem what is the input/out? what is the criteria for success? develop

More information

Mobilelogging: Assessing Smartphone Sensors for Monitoring Sleep Behaviour

Mobilelogging: Assessing Smartphone Sensors for Monitoring Sleep Behaviour Institute for Visualization and Interactive Systems University of Stuttgart Universitätsstraße 38 D 70569 Stuttgart Student Research Project Nr. 2428 Mobilelogging: Assessing Smartphone Sensors for Monitoring

More information

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

Android. Mobile Computing Design and Implementation. Application Components, Sensors. Peter Börjesson 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.

More information

Sensor Fusion Mobile Platform Challenges and Future Directions Jim Steele VP of Engineering, Sensor Platforms, Inc.

Sensor Fusion Mobile Platform Challenges and Future Directions Jim Steele VP of Engineering, Sensor Platforms, Inc. Sensor Fusion Mobile Platform Challenges and Future Directions Jim Steele VP of Engineering, Sensor Platforms, Inc. Copyright Khronos Group 2012 Page 104 Copyright Khronos Group 2012 Page 105 How Many

More information

Pedometer Project 1 Mr. Michaud / www.nebomusic.net

Pedometer Project 1 Mr. Michaud / www.nebomusic.net Mobile App Design Project Pedometer Using Accelerometer Sensor Description: The Android Phone has a three direction accelerometer sensor that reads the change in speed along three axis (x, y, and z). Programs

More information

CSE476 Mobile Application Development. Yard. Doç. Dr. Tacha Serif tserif@cse.yeditepe.edu.tr. Department of Computer Engineering Yeditepe University

CSE476 Mobile Application Development. Yard. Doç. Dr. Tacha Serif tserif@cse.yeditepe.edu.tr. Department of Computer Engineering Yeditepe University CSE476 Mobile Application Development Yard. Doç. Dr. Tacha Serif tserif@cse.yeditepe.edu.tr Department of Computer Engineering Yeditepe University Fall 2015 Yeditepe University 2015 Outline Bluetooth Connectivity

More information

Introduction to Android Programming. Khuong Vu, Graduate student Computer Science department

Introduction to Android Programming. Khuong Vu, Graduate student Computer Science department Introduction to Android Programming Khuong Vu, Graduate student Computer Science department 1 Content Get started Set up environment Running app on simulator GUI Layouts Event handling Life cycle Networking

More information

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

Internal Services. CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. Rajiv Ramnath Internal Services CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. Rajiv Ramnath 1 Internal Services Communication: Email, SMS and telephony Audio and video:

More information

Introduction to NaviGenie SDK Client API for Android

Introduction to NaviGenie SDK Client API for Android Introduction to NaviGenie SDK Client API for Android Overview 3 Data access solutions. 3 Use your own data in a highly optimized form 3 Hardware acceleration support.. 3 Package contents.. 4 Libraries.

More information

Sensori and its Advantages

Sensori and its Advantages CAS 765 Fall 15 Mbile Cmputing and Wireless Netwrking Rng Zheng Andrid Sensing Subsystem Qiang Xu 2 What is a Sensr? A cnverter that measures a physical quantity and cverts it int a signal which can be

More information

How to Convert 3-Axis Directions and Swap X-Y Axis of Accelerometer Data within Android Driver by: Gang Chen Field Applications Engineer

How to Convert 3-Axis Directions and Swap X-Y Axis of Accelerometer Data within Android Driver by: Gang Chen Field Applications Engineer Freescale Semiconductor Application Note Document Number: AN4317 Rev. 0, 08/2011 How to Convert 3-Axis Directions and Swap X-Y Axis of Accelerometer Data within Android Driver by: Gang Chen Field Applications

More information

Sensors and Cellphones

Sensors and Cellphones Sensors and Cellphones What is a sensor? A converter that measures a physical quantity and converts it into a signal which can be read by an observer or by an instrument What are some sensors we use every

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

Managing Android Fragmentation. Carter Jernigan two forty four a.m. LLC

Managing Android Fragmentation. Carter Jernigan two forty four a.m. LLC Managing Android Fragmentation Carter Jernigan two forty four a.m. LLC #1 Android 2.1+ only http://developer.android.com/resources/dashboard/platform-versions.html Only 1.6% of all Android users are running

More information

WEARIT DEVELOPER DOCUMENTATION 0.2 preliminary release July 20 th, 2013

WEARIT DEVELOPER DOCUMENTATION 0.2 preliminary release July 20 th, 2013 WEARIT DEVELOPER DOCUMENTATION 0.2 preliminary release July 20 th, 2013 The informations contained in this document are subject to change without notice and should not be construed as a commitment by Si14

More information

Developing Android Apps for BlackBerry 10. JAM854 Mike Zhou- Developer Evangelist, APAC Nov 30, 2012

Developing Android Apps for BlackBerry 10. JAM854 Mike Zhou- Developer Evangelist, APAC Nov 30, 2012 Developing Android Apps for BlackBerry 10 JAM854 Mike Zhou- Developer Evangelist, APAC Nov 30, 2012 Overview What is the BlackBerry Runtime for Android Apps? Releases and Features New Features Demo Development

More information

International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August-2013 1295 ISSN 2229-5518

International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August-2013 1295 ISSN 2229-5518 International Journal of Scientific & Engineering Research, Volume 4, Issue 8, August-2013 1295 HUMAN ACTIVITY RECOGNITION AN ANDROID APPLICATION Abstract Smitha K.S Department of Electronics and Communication,

More information

Acellus Natural 3D Tablet

Acellus Natural 3D Tablet Acellus Natural 3D Tablet Locked Down & Optimized for Use with the Acellus Learning System Acellus Natural 3D Tablet Locked Down & Optimized for Use with the Acellus Learning System Contents I. Quick Start

More information

Motion Sensing with mcube igyro Delivering New Experiences for Motion Gaming and Augmented Reality for Android Mobile Devices

Motion Sensing with mcube igyro Delivering New Experiences for Motion Gaming and Augmented Reality for Android Mobile Devices Motion Sensing with mcube igyro Delivering New Experiences for Motion Gaming and Augmented Reality for Android Mobile Devices MAY 2014 Every high-end smartphone and tablet today contains three sensing

More information

Lecture 1 Introduction to Android

Lecture 1 Introduction to Android These slides are by Dr. Jaerock Kwon at. The original URL is http://kettering.jrkwon.com/sites/default/files/2011-2/ce-491/lecture/alecture-01.pdf so please use that instead of pointing to this local copy

More information

Hello World! Some code

Hello World! Some code Embedded Systems Programming Hello World! Lecture 10 Verónica Gaspes www2.hh.se/staff/vero What could an Android hello world application be like? Center for Research on Embedded Systems School of Information

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

Android Geek Night. Application framework

Android Geek Night. Application framework Android Geek Night Application framework Agenda 1. Presentation 1. Trifork 2. JAOO 2010 2. Google Android headlines 3. Introduction to an Android application 4. New project using ADT 5. Main building blocks

More information

Kathy Au Billy Yi Fan Zhou Department of Electrical and Computer Engineering University of Toronto { kathy.au, billy.zhou }@utoronto.

Kathy Au Billy Yi Fan Zhou Department of Electrical and Computer Engineering University of Toronto { kathy.au, billy.zhou }@utoronto. ECE1778 Project Report Kathy Au Billy Yi Fan Zhou Department of Electrical and Computer Engineering University of Toronto { kathy.au, billy.zhou }@utoronto.ca Executive Summary The goal of this project

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

AN APPLYING OF ACCELEROMETER IN ANDROID PLATFORM FOR CONTROLLING WEIGHT

AN APPLYING OF ACCELEROMETER IN ANDROID PLATFORM FOR CONTROLLING WEIGHT AN APPLYING OF ACCELEROMETER IN ANDROID PLATFORM FOR CONTROLLING WEIGHT Sasivimon Sukaphat Computer Science Program, Faculty of Science, Thailand sasivimo@swu.ac.th ABSTRACT This research intends to present

More information

CP3100 - Introduction to Android Mobile Development

CP3100 - Introduction to Android Mobile Development Philippe Leefsma, Philippe.Leefsma@Autodesk.com Autodesk Inc. Developer Technical Services CP3100 Learn how quick and easy it is to start programming for Android devices. We will create from scratch a

More information

Charith Pereral, Arkady Zaslavsky, Peter Christen, Ali Salehi and Dimitrios Georgakopoulos (IEEE 2012) Presented By- Anusha Sekar

Charith Pereral, Arkady Zaslavsky, Peter Christen, Ali Salehi and Dimitrios Georgakopoulos (IEEE 2012) Presented By- Anusha Sekar Charith Pereral, Arkady Zaslavsky, Peter Christen, Ali Salehi and Dimitrios Georgakopoulos (IEEE 2012) Presented By- Anusha Sekar Introduction Terms and Concepts Mobile Sensors Global Sensor Networks DAM4GSN

More information

Making Android Motion Applications Using the Unity 3D Engine

Making Android Motion Applications Using the Unity 3D Engine InvenSense Inc. 1197 Borregas Ave., Sunnyvale, CA 94089 U.S.A. Tel: +1 (408) 988-7339 Fax: +1 (408) 988-8104 Website: www.invensense.com Document Number: Revision: Making Android Motion Applications Using

More information

Expert Android Apps Development

Expert Android Apps Development Course Contents: 1. 2D Animations Frame-by-Frame Animation o Planning for Frame-by-Frame Animation o Creating the Activity o Adding Animation to the Activity Layout Animation o Basic Tweening Animation

More information

Smartphone-based sensor networks and some statistical challenges: the Earthquake Network Android application

Smartphone-based sensor networks and some statistical challenges: the Earthquake Network Android application Smartphone-based sensor networks and some statistical challenges: the Earthquake Network Android application Francesco Finazzi University of Bergamo 29 November 2013 - University of Glasgow Outline Outline

More information

AUTOMATIC HUMAN FREE FALL DETECTION USING ANDROID

AUTOMATIC HUMAN FREE FALL DETECTION USING ANDROID AUTOMATIC HUMAN FREE FALL DETECTION USING ANDROID Mrs.P.Booma devi 1, Mr.S.P.Rensingh Xavier 2 Assistant Professor, Department of EEE, Ratnavel Subramaniam College of Engineering and Technology, Dindigul

More information

Use It Free: Instantly Knowing Your Phone Attitude

Use It Free: Instantly Knowing Your Phone Attitude Use It Free: Instantly Knowing Your Phone Attitude Pengfei Zhou, Mo Li Nanyang Technological University, Singapore {pfzhou, limo}@ntu.edu.sg Guobin Shen Microsoft Research, China jackysh@microsoft.com

More information

SENSORS ON ANDROID PHONES. Indian Institute of Technology Kanpur Commonwealth of Learning Vancouver

SENSORS ON ANDROID PHONES. Indian Institute of Technology Kanpur Commonwealth of Learning Vancouver SENSORS ON ANDROID PHONES Indian Institute of Technology Kanpur Commonwealth of Learning Vancouver Keerthi Kumar Samsung Semiconductors Keerthi Kumar IIT Kanpur Keerthi Kumar Overview What are sensors?

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

Using the Adafruit Unified Sensor Driver. Created by Kevin Townsend

Using the Adafruit Unified Sensor Driver. Created by Kevin Townsend Using the Adafruit Unified Sensor Driver Created by Kevin Townsend Guide Contents Guide Contents Introduction One Type to Rule Them All Why Is This a Good Thing? Adafruit_Sensor in Detail Standardised

More information

Effective Use of Android Sensors Based on Visualization of Sensor Information

Effective Use of Android Sensors Based on Visualization of Sensor Information , pp.299-308 http://dx.doi.org/10.14257/ijmue.2015.10.9.31 Effective Use of Android Sensors Based on Visualization of Sensor Information Young Jae Lee Faculty of Smartmedia, Jeonju University, 303 Cheonjam-ro,

More information

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

ECE 455/555 Embedded System Design. Android Programming. Wei Gao. Fall 2015 1 ECE 455/555 Embedded System Design Android Programming Wei Gao Fall 2015 1 Fundamentals of Android Application Java programming language Code along with any required data and resource files are compiled

More information

ELDERLY SUPPORT - ANDROID APPLICATION FOR FALL DETECTION AND TRACKING TEJITHA RUDRARAJU. B.E, Anna University, India, 2011 A REPORT

ELDERLY SUPPORT - ANDROID APPLICATION FOR FALL DETECTION AND TRACKING TEJITHA RUDRARAJU. B.E, Anna University, India, 2011 A REPORT ELDERLY SUPPORT - ANDROID APPLICATION FOR FALL DETECTION AND TRACKING By TEJITHA RUDRARAJU B.E, Anna University, India, 2011 A REPORT Submitted in partial fulfillment of the requirements for the degree

More information

IOS EYE4 APP User Manual

IOS EYE4 APP User Manual IOS EYE4 APP User Manual Eye4 App can be downloaded from Google Play (Android) and App Store (IOS). Besides, it can be downloaded from http://www.eye4.so/download/ The below user manual is based on Eye4

More information

Application Note IMU Visualization Software

Application Note IMU Visualization Software ECE 480 Spring 2013 Team 8 Application Note IMU Visualization Software Name: Alex Mazzoni Date: 04/04/2013 Facilitator: Dr. Aviyente Abstract This application note covers how to use open source software

More information

Admin. Mobile Software Development Framework: Android Activity, View/ViewGroup, External Resources. Recap: TinyOS. Recap: J2ME Framework

Admin. Mobile Software Development Framework: Android Activity, View/ViewGroup, External Resources. Recap: TinyOS. Recap: J2ME Framework Admin. Mobile Software Development Framework: Android Activity, View/ViewGroup, External Resources Homework 2 questions 10/9/2012 Y. Richard Yang 1 2 Recap: TinyOS Hardware components motivated design

More information

Creating a List UI with Android. Michele Schimd - 2013

Creating a List UI with Android. Michele Schimd - 2013 Creating a List UI with Android Michele Schimd - 2013 ListActivity Direct subclass of Activity By default a ListView instance is already created and rendered as the layout of the activity mylistactivit.getlistview();

More information

Android and OpenGL. Android Smartphone Programming. Matthias Keil. University of Freiburg

Android and OpenGL. Android Smartphone Programming. Matthias Keil. University of Freiburg Android and OpenGL Android Smartphone Programming Matthias Keil Institute for Computer Science Faculty of Engineering 16. Dezember 2013 Outline 1 OpenGL Introduction 2 Displaying Graphics 3 Interaction

More information

AdFalcon Android SDK 2.1.4 Developer's Guide. AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group

AdFalcon Android SDK 2.1.4 Developer's Guide. AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group AdFalcon Android SDK 214 Developer's Guide AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group Table of Contents 1 Introduction 3 Supported Android version 3 2 Project Configurations 4 Step

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

Android on Intel Course App Development - Advanced

Android on Intel Course App Development - Advanced Android on Intel Course App Development - Advanced Paul Guermonprez www.intel-software-academic-program.com paul.guermonprez@intel.com Intel Software 2013-02-08 Persistence Preferences Shared preference

More information

Mobile App Sensor Documentation (English Version)

Mobile App Sensor Documentation (English Version) Mobile App Sensor Documentation (English Version) Mobile App Sensor Documentation (English Version) Version: 1.2.1 Date: 2015-03-25 Author: email: Kantar Media spring support@spring.de Content Mobile App

More information

Android Sensors 101. 2014 This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. CC-BY Google

Android Sensors 101. 2014 This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. CC-BY Google Android Sensors 101 Atilla Filiz atilla@mind.be 2014 This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License CC-BY Google These slides are made available to you under

More information

Selection and Zooming using Android Phone in a 3D Virtual Reality

Selection and Zooming using Android Phone in a 3D Virtual Reality Selection and Zooming using Android Phone in a 3D Virtual Reality Yanko Sabev Director: Prof. Gudrun Klinker (Ph.D.) Supervisors: Amal Benzina Technische Universität München Introduction Human-Computer

More information

Introduction to Android SDK Jordi Linares

Introduction to Android SDK Jordi Linares Introduction to Android SDK Introduction to Android SDK http://www.android.com Introduction to Android SDK Google -> OHA (Open Handset Alliance) The first truly open and comprehensive platform for mobile

More information

Quick Start Guide ActiGraph GT9X Link + ActiLife

Quick Start Guide ActiGraph GT9X Link + ActiLife Quick Start Guide ActiGraph GT9X Link + ActiLife Activity Monitor: ActiGraph GT9X Link Revision: A Released: 11/24/2014 Quick Start Guide ActiGraph GT9X Link + ActiLife Activity Monitor: ActiGraph GT9X

More information

The BSN Hardware and Software Platform: Enabling Easy Development of Body Sensor Network Applications

The BSN Hardware and Software Platform: Enabling Easy Development of Body Sensor Network Applications The BSN Hardware and Software Platform: Enabling Easy Development of Body Sensor Network Applications Joshua Ellul jellul@imperial.ac.uk Overview Brief introduction to Body Sensor Networks BSN Hardware

More information

Cookbook. Flash ios Apps. Christopher Caleb. 100 practical recipes for developing ios apps with Flash Professional and Adobe AIR PUBLISHING MUMBAI

Cookbook. Flash ios Apps. Christopher Caleb. 100 practical recipes for developing ios apps with Flash Professional and Adobe AIR PUBLISHING MUMBAI Flash ios Apps Cookbook 100 practical recipes for developing ios apps with Flash Professional and Adobe AIR Christopher Caleb PUBLISHING BIRMINGHAM - MUMBAI Preface 1 Chapter 1: Getting Started with ios

More information

Iotivity Programmer s Guide Soft Sensor Manager for Android

Iotivity Programmer s Guide Soft Sensor Manager for Android Iotivity Programmer s Guide Soft Sensor Manager for Android 1 CONTENTS 2 Introduction... 3 3 Terminology... 3 3.1 Physical Sensor Application... 3 3.2 Soft Sensor (= Logical Sensor, Virtual Sensor)...

More information

UNMANNED AERIAL VEHICLE (UAV) SAFETY SYSTEM USING ANDROID APP

UNMANNED AERIAL VEHICLE (UAV) SAFETY SYSTEM USING ANDROID APP UNMANNED AERIAL VEHICLE (UAV) SAFETY SYSTEM USING ANDROID APP Divya Dwivedi 1, Gurajada Sai Priyanka 2, G Suganthi Brindha 3 G.Elavel.Visuvunathan 4 1,2,3,4 Electronics and Communication Department/ SRM

More information

International Journal of Advanced Research in Computer Science and Software Engineering

International Journal of Advanced Research in Computer Science and Software Engineering Volume 3, Issue 3, March 203 ISSN: 2277 28X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com Real Time Monitoring

More information

UI Performance Monitoring

UI Performance Monitoring UI Performance Monitoring SWT API to Monitor UI Delays Terry Parker, Google Contents 1. 2. 3. 4. 5. 6. 7. Definition Motivation The new API Monitoring UI Delays Diagnosing UI Delays Problems Found! Next

More information

Frequently Asked Questions (FAQs)

Frequently Asked Questions (FAQs) Frequently Asked Questions (FAQs) OS5000 & OS4000 Family of Compasses FAQ Document Rev. 2.0 Important Notes: Please also reference the OS5000 family user guide & OS4000 user guide on our download page.

More information

Intro to Android Development 2. Accessibility Capstone Nov 23, 2010

Intro to Android Development 2. Accessibility Capstone Nov 23, 2010 Intro to Android Development 2 Accessibility Capstone Nov 23, 2010 Outline for Today Application components Activities Intents Manifest file Visual user interface Creating a user interface Resources TextToSpeech

More information

CS297 Report. Accelerometer based motion gestures for Mobile Devices

CS297 Report. Accelerometer based motion gestures for Mobile Devices CS297 Report Accelerometer based motion gestures for Mobile Devices Neel Parikh neelkparikh@yahoo.com Advisor: Dr. Chris Pollett Department of Computer Science San Jose State University Spring 2008 1 Table

More information