ELET4133: Embedded Systems. Topic 15 Sensors
|
|
|
- Beryl Peters
- 10 years ago
- Views:
Transcription
1 ELET4133: Embedded Systems Topic 15 Sensors
2 Agenda What is a sensor? Different types of sensors Detecting sensors Example application of the accelerometer 2
3 What is a sensor? Piece of hardware that collects data from the physical world, transforms it into useable data and transfers it to the computer or microcontroller Apps read the data (as voltage or current), Makes a decision based on its value Does whatever it needs to do Sensors operate as input devices only To receive data we have to setup a listener to react to new incoming data 3
4 Sensor Types Light Sensor As of Android 2.3 Proximity Sensor Gravity Sensor Temperature Sensor Linear Accerlation Sensor Pressure Sensor Rotation Vector Sensor Gyroscope Sensor Near Field Accelerometer Commincation (NFC) Magnetic Field Sensor Sensor Orientation Sensor Works differently than the others 4
5 Detecting a Sensor Not all devices have all sensors The emulator has only an accelerometer Basically for orientation purposes To discover which sensors are on your device you can use a direct or indorect method Direct: get a list of available sensors from the SensorManager, set up listeners for them, then retrieve data from them Assumes user has already installed the App Indirect: in the manifest you can specify the resoruces a device must have to use this App 5
6 Develop an App to List Sensors The App should look like this: It will use a simple Linear Layout, but have a ScrollView Then a TextView within the ScrollView In case there is a long list of sensors 6
7 Start with the Layout Setup a TextView within a Scroll View within a Linear Layout Try it graphically: First: changed the default layout (Relative) to a Vertical Linear Layout 7
8 Start with the Layout Setup a TextView within a Scroll View within a Linear Layout Try it graphically: First: changed the default layout (Relative) to a Vertical Linear Layout Then: Select a Scroll View from the Composite Pallete 8
9 Start with the Layout Setup a TextView within a Scroll View within a Linear Layout Try it graphically: First: changed the default layout (Relative) to a Vertical Linear Layout Then: Select a Scroll View from the Composite Pallete and drag it over to the graphical layout screen 9
10 Start with the Layout As you drag it into the Linear Layout, it will turn orange 10
11 Start with the Layout As you drag it into the Linear Layout, it will turn orange When you drop it, it will turn blue. 11
12 Start with the Layout As you drag it into the Linear Layout, it will turn orange When you drop it, it will turn blue. Then if you pull it down and let go, the scrollview will expand to fill the screen. 12
13 Start with the Layout As you drag it into the Linear Layout, it will turn orange When you drop it, it will turn blue. Then if you pull it down and let go, the scrollview will expand to fill the screen. Then drop in the textview 13
14 Start with the Layout As you drag it into the Linear Layout, it will turn orange When you drop it, it will turn blue. Then if you pull it down and let go, the scrollview will expand to fill the screen. Then drop in the textview The xml file appears as shown here 14
15 Start with the Layout As you drag it into the Linear Layout, it will turn orange When you drop it, it will turn blue. Then if you pull it down and let go, the scrollview will expand to fill the screen. Then drop in the textview The warning message states that either the LinearLayout or the ScrollView are unecessary The xml file appears as shown here 15
16 Start with the Layout But, it was left the way it was because it didn t hurt anything and it was just a warning 16
17 Add Functionality 17
18 Start the Java File This is the Java file that has (so far) been generated by Eclipse 18
19 Add the TextView This is the Java file that has (so far) been generated by Eclipse TextView mytextview = (TextView)findViewById(R.id.textView1); This statement was added to create an identifier and a reference for the TextView. When this statement was first typed in, an error was generated, but there was nothing wrong that I could see. 19
20 Add the TextView This is the Java file that has (so far) been generated by Eclipse TextView mytextview = (TextView)findViewById(R.id.textView1); This statement was added to create an identifier and a reference for the TextView. When this statement was first typed So, [CNTRL][SHIFT]+O was typed, which added the correct import statement in, an error was generated, but there was nothing wrong that I so that the error was resolved could see. 20
21 Add the SensorManager Next, we need a reference to the Sensor Manager The command is: SensorManager sensormanager = (SensorManager) this.getsystemservice(sensor_service); There can be only one Sensor Manager, and so we need it for the system s sensor service. The command is inserted here. 21
22 Add the getsensorlist Command Now that we have a sensor manager, we can use the getsensorlist ( ) method It will return a list of all the sensors The command is: List<Sensor> sensors = sensormanager.getsensorlist(sensor.type_all); 22
23 Add the getsensorlist Command Now that we have a sensor manager, we can use the getsensorlist ( ) method It will return a list of all the sensors The command is: List<Sensor> sensors = sensormanager.getsensorlist(sensor.type_all); And, again, we have an error. [CNTRL][SHIFT]+O imports the correct package 23
24 Help Windows As the command is being typed, several Help screens pop up: 24
25 Help Windows The.getSensorList help 25
26 Help Windows The.getSensorList help and the Type Help (Type of List) 26
27 The Information Next, we need to build a String to hold the information that we want to display in the TextView: The list of sensors 27
28 The Information To do this, use a StringBuilder Allows you to append information to an existing String First, create a new StringBuilder Then append your starting message to it 28
29 The Information This command returns a list of all the sensors Then, we have to use some kind of loop to build the list of sensors 29
30 The Information Create a new Sensor called sensor 30
31 The Information Create a new Sensor called sensor As the sensor.getname statement is being typed, the help screen pops up so we can see what methods are available to sensor 31
32 The Information Create a new Sensor called sensor As the sensor.getname statement is being typed, the help screen pops up so we can see what methods are available to sensor 32
33 The Information An identifier name (sensortypes) was used, but it has no corresponding type So an error occurs This type has not been entered yet If you hover the cursor over the error, 9 quick fixes are suggested: 33
34 The Information An identifier name (sensortypes) was used, but it has no corresponding type So an error occurs This type has not been entered yet If you hover the cursor over the error, 9 quick fixes are suggested: 34
35 The Information But, to fix it, we are going to create a HashMap A HashMap is a subclass of Map that allows us to create a list of key and value pairs This will allow us to get a string for the Type of sensor in the list 35
36 The HashMap private HashMap<Integer, String> sensortypes = new HashMap<Integer, String>(); {// Initialize the map of sensor types and values sensortypes.put(sensor.type_accelerometer, "TYPE_ACCELEROMETER"); sensortypes.put(sensor.type_gyroscope, "TYPE_GYROSCOPE"); sensortypes.put(sensor.type_light, "TYPE_LIGHT"); sensortypes.put(sensor.type_magnetic_field, "TYPE_MAGNETIC_FIELD"); sensortypes.put(sensor.type_orientation, "TYPE_ORIENTATION"); sensortypes.put(sensor.type_pressure, "TYPE_PRESSURE"); sensortypes.put(sensor.type_proximity, "TYPE_PROXIMITY"); sensortypes.put(sensor.type_temperature, "TYPE_TEMPERATURE"); sensortypes.put(sensor.type_gravity, "TYPE_GRAVITY"); sensortypes.put(sensor.type_linear_acceleration, "TYPE_LINEAR_ACCELERATION"); sensortypes.put(sensor.type_rotation_vector, "TYPE_ROTATION_VECTOR"); } //End of Hash Map The HashMap matches an Integer constant (TYPE_LIGHT) to a String TYPE_LIGHT 36
37 The HashMap private HashMap<Integer, String> sensortypes = new HashMap<Integer, String>(); {// Initialize the map of sensor types and values sensortypes.put(sensor.type_accelerometer, "TYPE_ACCELEROMETER"); sensortypes.put(sensor.type_gyroscope, "TYPE_GYROSCOPE"); sensortypes.put(sensor.type_light, "TYPE_LIGHT"); sensortypes.put(sensor.type_magnetic_field, "TYPE_MAGNETIC_FIELD"); // sensortypes.put(sensor.type_orientation, "TYPE_ORIENTATION"); sensortypes.put(sensor.type_pressure, "TYPE_PRESSURE"); sensortypes.put(sensor.type_proximity, "TYPE_PROXIMITY"); // sensortypes.put(sensor.type_temperature, "TYPE_TEMPERATURE"); sensortypes.put(sensor.type_gravity, "TYPE_GRAVITY"); sensortypes.put(sensor.type_linear_acceleration, "TYPE_LINEAR_ACCELERATION"); sensortypes.put(sensor.type_rotation_vector, "TYPE_ROTATION_VECTOR"); } //End of Hash Map Two of the TYPES gave warning messages saying that they had been deprecated for this version of Android, so for now they were commented 37
38 One more thing We have to set the text into the TextView so that it will print the available sensors to the screen of the android 38
39 Execution The project was then tested on the emulator There are no sensors on the emulator, so all that was shown was the first string that was built 39
40 Execution The project was then tested on the emulator There are no sensors on the emulator, so all that was shown was the first string that was built Then, it was tested on the phone All of its sensors (that were found in that list) were printed on the screen 40
41 Accelerometer Test App 41
42 Accelerometer Test App This App will read the values on the Acceleromoter and print them on the screen If nothing else, it is a Test App to make usre that: There is an Accelerometer on the phone The Accelerometer is working The program will read the Acceleromoeter 42
43 Start with the Layout Again, we ll start with the Layout Keep it very simple The default RelativeLayout 43
44 Start with the Layout Again, we ll start with the Layout Keep it very simple The default RelativeLayout Add 4 TextViews to print the values for X, Y, and Z (and the title) 44
45 The Layout The default Relative Layout is: Has the single TextView for Hello World <RelativeLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".mainactivity" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" /> </RelativeLayout> 45
46 The TextViews The first part: The 1 st TextView is for the Title <RelativeLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/relative"> <TextView android:textsize="30dp" android:id="@+id/name" android:layout_width="fill_parent" android:layout_height="wrap_content /> <TextView android:textsize="20dp" android:layout_below="@+id/name" android:id="@+id/xval" android:layout_width="fill_parent" android:layout_height="wrap_content"/>
47 The TextViews The rest: </RelativeLayout> <TextView android:textsize="20dp" android:layout_width="fill_parent" android:layout_height="wrap_content" <TextView android:textsize="20dp" android:layout_width="fill_parent" android:layout_height="wrap_content" 47
48 The MainActivity.java We are going to use the Accelerometer, so we have several things we must do: 1. Extend Activity 2. Implement a SensorEventListener (for changes) 3. oncreate( ) method 4. Implement an event handler for when the accelerometer changes values 48
49 The MainActivity.java public class MainActivity extends Activity implements SensorEventListener { private SensorManager msensormanager; private Sensor maccelerometer; TextView title,tv,tv1,tv2; RelativeLayout layout; Create the necessary public final void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); msensormanager = (SensorManager) getsystemservice(context.sensor_service); maccelerometer = msensormanager.getdefaultsensor(sensor.type_accelerometer); //get layout layout = (RelativeLayout)findViewById(R.id.relative); } //get textviews title=(textview)findviewbyid(r.id.name); tv=(textview)findviewbyid(r.id.xval); tv1=(textview)findviewbyid(r.id.yval); tv2=(textview)findviewbyid(r.id.zval); 49
50 The MainActivity.java public class MainActivity extends Activity implements SensorEventListener { private SensorManager msensormanager; private Sensor maccelerometer; TextView title,tv,tv1,tv2; RelativeLayout layout; Setup the oncreate( ) public final void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); msensormanager = (SensorManager) getsystemservice(context.sensor_service); maccelerometer = msensormanager.getdefaultsensor(sensor.type_accelerometer); //get layout layout = (RelativeLayout)findViewById(R.id.relative); } //get textviews title=(textview)findviewbyid(r.id.name); tv=(textview)findviewbyid(r.id.xval); tv1=(textview)findviewbyid(r.id.yval); tv2=(textview)findviewbyid(r.id.zval); 50
51 The MainActivity.java public class MainActivity extends Activity implements SensorEventListener { private SensorManager msensormanager; private Sensor maccelerometer; TextView title,tv,tv1,tv2; RelativeLayout layout; Set the content public final void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); msensormanager = (SensorManager) getsystemservice(context.sensor_service); maccelerometer = msensormanager.getdefaultsensor(sensor.type_accelerometer); //get layout layout = (RelativeLayout)findViewById(R.id.relative); } //get textviews title=(textview)findviewbyid(r.id.name); tv=(textview)findviewbyid(r.id.xval); tv1=(textview)findviewbyid(r.id.yval); tv2=(textview)findviewbyid(r.id.zval); 51
52 The MainActivity.java public class MainActivity extends Activity implements SensorEventListener { private SensorManager msensormanager; private Sensor maccelerometer; TextView title,tv,tv1,tv2; RelativeLayout public final void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); msensormanager = (SensorManager) getsystemservice(context.sensor_service); maccelerometer = msensormanager.getdefaultsensor(sensor.type_accelerometer); //get layout layout = (RelativeLayout)findViewById(R.id.relative); Create a new SensorManager (always before the sensor) } //get textviews title=(textview)findviewbyid(r.id.name); tv=(textview)findviewbyid(r.id.xval); tv1=(textview)findviewbyid(r.id.yval); tv2=(textview)findviewbyid(r.id.zval); 52
53 The MainActivity.java public class MainActivity extends Activity implements SensorEventListener { private SensorManager msensormanager; private Sensor maccelerometer; TextView title,tv,tv1,tv2; RelativeLayout public final void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); msensormanager = (SensorManager) getsystemservice(context.sensor_service); maccelerometer = msensormanager.getdefaultsensor(sensor.type_accelerometer); //get layout layout = (RelativeLayout)findViewById(R.id.relative); Create a new accelerometer } //get textviews title=(textview)findviewbyid(r.id.name); tv=(textview)findviewbyid(r.id.xval); tv1=(textview)findviewbyid(r.id.yval); tv2=(textview)findviewbyid(r.id.zval); 53
54 The MainActivity.java public class MainActivity extends Activity implements SensorEventListener { private SensorManager msensormanager; private Sensor maccelerometer; TextView title,tv,tv1,tv2; RelativeLayout public final void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); msensormanager = (SensorManager) getsystemservice(context.sensor_service); maccelerometer = msensormanager.getdefaultsensor(sensor.type_accelerometer); //get layout layout = (RelativeLayout)findViewById(R.id.relative); } //get textviews title=(textview)findviewbyid(r.id.name); tv=(textview)findviewbyid(r.id.xval); tv1=(textview)findviewbyid(r.id.yval); tv2=(textview)findviewbyid(r.id.zval); Setup the needed textviews 54
55 The Event public final void onsensorchanged(sensorevent event) { // Many sensors return 3 values, one for each axis. float x = event.values[0]; float y = event.values[1]; float z = event.values[2]; The Event Handler declaration } //display values using TextView title.settext(r.string.app_name); tv.settext("x axis" +"\t\t"+x); tv1.settext("y axis" + "\t\t" +y); tv2.settext("z axis" +"\t\t" +z); 55
56 The Event public final void onsensorchanged(sensorevent event) { // Many sensors return 3 values, one for each axis. float x = event.values[0]; } float y = event.values[1]; float z = event.values[2]; //display values using TextView title.settext(r.string.app_name); tv.settext("x axis" +"\t\t"+x); tv1.settext("y axis" + "\t\t" +y); tv2.settext("z axis" +"\t\t" +z); The values for x, y, and z as read off the accelerometer 56
57 The Event public final void onsensorchanged(sensorevent event) { // Many sensors return 3 values, one for each axis. float x = event.values[0]; float y = event.values[1]; float z = event.values[2]; } //display values using TextView title.settext(r.string.app_name); tv.settext("x axis" +"\t\t"+x); tv1.settext("y axis" + "\t\t" +y); tv2.settext("z axis" +"\t\t" +z); Print out the title (AccelerometerDemo) 57
58 The Event public final void onsensorchanged(sensorevent event) { // Many sensors return 3 values, one for each axis. float x = event.values[0]; float y = event.values[1]; float z = event.values[2]; } //display values using TextView title.settext(r.string.app_name); tv.settext("x axis" +"\t\t"+x); tv1.settext("y axis" + "\t\t" +y); tv2.settext("z axis" +"\t\t" +z); Print out the three values) 58
59 Other protected void onresume() { super.onresume(); msensormanager.registerlistener(this, maccelerometer, SensorManager.SENSOR_DELAY_NORMAL); protected void onpause() { super.onpause(); msensormanager.unregisterlistener(this); } Two of the necessary methods In case the App is paused and resumed 59
60 Execution When executed on the emulator Again, nothing happens Must run it on the phone to test it 60
61 Summary We defined a sensor And looked at the different types of sensors on an android phone We wrote an App to detect the sensors on the phone and list them on the screen Developed an example application of the accelerometer 61
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
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,
Android Sensors. CPRE 388 Fall 2015 Iowa State University
Android Sensors CPRE 388 Fall 2015 Iowa State University What are sensors? Sense and measure physical and ambient conditions of the device and/or environment Measure motion, touch pressure, orientation,
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
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
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
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
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
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
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
Using the Android Sensor API
Using the Android Sensor API Juan José Marrón Department of Computer Science & Engineering [email protected] # Outline Sensors description: - Motion Sensors - Environmental Sensors - Positioning Sensors
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
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
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
Getting Started: Creating a Simple App
Getting Started: Creating a Simple App What You will Learn: Setting up your development environment Creating a simple app Personalizing your app Running your app on an emulator The goal of this hour is
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
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
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
Developing an Android App. CSC207 Fall 2014
Developing an Android App CSC207 Fall 2014 Overview Android is a mobile operating system first released in 2008. Currently developed by Google and the Open Handset Alliance. The OHA is a consortium of
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
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: [email protected] Facebook: http://www.facebook.com/peterlo111
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
Android Concepts and Programming TUTORIAL 1
Android Concepts and Programming TUTORIAL 1 Kartik Sankaran [email protected] CS4222 Wireless and Sensor Networks [2 nd Semester 2013-14] 20 th January 2014 Agenda PART 1: Introduction to Android - Simple
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/
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)
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
Tutorial #1. Android Application Development Advanced Hello World App
Tutorial #1 Android Application Development Advanced Hello World App 1. Create a new Android Project 1. Open Eclipse 2. Click the menu File -> New -> Other. 3. Expand the Android folder and select Android
Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months
Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months Our program is a practical knowledge oriented program aimed at making innovative and attractive applications for mobile
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
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
Android App Development Lloyd Hasson 2015 CONTENTS. Web-Based Method: Codenvy. Sponsored by. Android App. Development
Android App Lloyd Hasson 2015 Web-Based Method: Codenvy This tutorial goes through the basics of Android app development, using web-based technology and basic coding as well as deploying the app to a virtual
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();
! 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 [email protected] @DePaulSWEng Outline Sensors in Android devices Motion sensors
Android Java Live and In Action
Android Java Live and In Action Norman McEntire Founder, Servin Corp UCSD Extension Instructor [email protected] Copyright (c) 2013 Servin Corp 1 Opening Remarks Welcome! Thank you! My promise
Basics of Android Development 1
Departamento de Engenharia Informática Minds-On Basics of Android Development 1 Paulo Baltarejo Sousa [email protected] 2016 1 The content of this document is based on the material presented at http://developer.android.com
Android Application Development: Hands- On. Dr. Jogesh K. Muppala [email protected]
Android Application Development: Hands- On Dr. Jogesh K. Muppala [email protected] Wi-Fi Access Wi-Fi Access Account Name: aadc201312 2 The Android Wave! 3 Hello, Android! Configure the Android SDK SDK
Creating a 2D Game Engine for Android OS. Introduction
Creating a 2D Game Engine for Android OS Introduction This tutorial will lead you through the foundations of creating a 2D animated game for the Android Operating System. The goal here is not to create
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:
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
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
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.
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:
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)
Now that we have the Android SDK, Eclipse and Phones all ready to go we can jump into actual Android development.
Android Development 101 Now that we have the Android SDK, Eclipse and Phones all ready to go we can jump into actual Android development. Activity In Android, each application (and perhaps each screen
By sending messages into a queue, we can time these messages to exit the cue and call specific functions.
Mobile App Tutorial Deploying a Handler and Runnable for Timed Events Creating a Counter Description: Given that Android Java is event driven, any action or function call within an Activity Class must
Designing An Android Sensor Subsystem Pitfalls and Considerations
Designing An Android Sensor Subsystem Pitfalls and Considerations Jen Costillo [email protected] Simple Choices User experience Battery performance 7/15/2012 Costillo- OSCON 2012 2 Established or Innovative
Building Your First App
uilding Your First App Android Developers http://developer.android.com/training/basics/firstapp/inde... Building Your First App Welcome to Android application development! This class teaches you how to
MMI 2: Mobile Human- Computer Interaction Android
MMI 2: Mobile Human- Computer Interaction Android Prof. Dr. [email protected] Mobile Interaction Lab, LMU München Android Software Stack Applications Java SDK Activities Views Resources Animation
Android Introduction. Hello World. @2010 Mihail L. Sichitiu 1
Android Introduction Hello World @2010 Mihail L. Sichitiu 1 Goal Create a very simple application Run it on a real device Run it on the emulator Examine its structure @2010 Mihail L. Sichitiu 2 Google
2. Click the download button for your operating system (Windows, Mac, or Linux).
Table of Contents: Using Android Studio 1 Installing Android Studio 1 Installing IntelliJ IDEA Community Edition 3 Downloading My Book's Examples 4 Launching Android Studio and Importing an Android Project
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
Presenting Android Development in the CS Curriculum
Presenting Android Development in the CS Curriculum Mao Zheng Hao Fan Department of Computer Science International School of Software University of Wisconsin-La Crosse Wuhan University La Crosse WI, 54601
Mobile App Tutorial Animation with Custom View Class and Animated Object Bouncing and Frame Based Animation
Mobile App Tutorial Animation with Custom View Class and Animated Object Bouncing and Frame Based Animation Description of View Based Animation and Control-Model-View Design process In mobile device programming,
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
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,
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
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++
Android Programming Basics
2012 Marty Hall Android Programming Basics Originals of Slides and Source Code for Examples: http://www.coreservlets.com/android-tutorial/ Customized Java EE Training: http://courses.coreservlets.com/
Android on Intel Course App Development - Advanced
Android on Intel Course App Development - Advanced Paul Guermonprez www.intel-software-academic-program.com [email protected] Intel Software 2013-02-08 Persistence Preferences Shared preference
4. The Android System
4. The Android System 4. The Android System System-on-Chip Emulator Overview of the Android System Stack Anatomy of an Android Application 73 / 303 4. The Android System Help Yourself Android Java Development
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
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
TUTORIAL. BUILDING A SIMPLE MAPPING APPLICATION
Cleveland State University CIS493. Mobile Application Development Using Android TUTORIAL. BUILDING A SIMPLE MAPPING APPLICATION The goal of this tutorial is to create a simple mapping application that
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
IBM Tealeaf CX Mobile Android Logging Framework Version 9 Release 0.1 December 4, 2104. IBM Tealeaf CX Mobile Android Logging Framework Guide
IBM Tealeaf CX Mobile Android Logging Framework Version 9 Release 0.1 December 4, 2104 IBM Tealeaf CX Mobile Android Logging Framework Guide Note Before using this information and the product it supports,
Getting Started With Android
Getting Started With Android Author: Matthew Davis Date: 07/25/2010 Environment: Ubuntu 10.04 Lucid Lynx Eclipse 3.5.2 Android Development Tools(ADT) 0.9.7 HTC Incredible (Android 2.1) Preface This guide
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
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
Wireless Communication Using Bluetooth and Android
Wireless Communication Using Bluetooth and Android Michael Price 11/11/2013 Abstract The purpose of this application note is to explain how to implement Bluetooth for wireless applications. The introduction
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
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
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
Android Application Development Lecture Notes INDEX
Android Application Development Lecture Notes INDEX Lesson 1. Introduction 1-2 Mobile Phone Evolution 1-3 Hardware: What is inside a Smart Cellular Phone? 1-4 Hardware: Reusing Cell Phone Frequencies 1-5
MAP524/DPS924 MOBILE APP DEVELOPMENT (ANDROID) MIDTERM TEST OCTOBER 2013 STUDENT NAME STUDENT NUMBER
MAP524/DPS924 MOBILE APP DEVELOPMENT (ANDROID) MIDTERM TEST OCTOBER 2013 STUDENT NAME STUDENT NUMBER Please answer all questions on the question sheet This is an open book/notes test. You are allowed to
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
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
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
Getting Started with Android
Mobile Application Development Lecture 02 Imran Ihsan Getting Started with Android Before we can run a simple Hello World App we need to install the programming environment. We will run Hello World on
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
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
Android Developer Fundamental 1
Android Developer Fundamental 1 I. Why Learn Android? Technology for life. Deep interaction with our daily life. Mobile, Simple & Practical. Biggest user base (see statistics) Open Source, Control & Flexibility
Developing Android Apps: Part 1
: Part 1 [email protected] www.dre.vanderbilt.edu/~schmidt Institute for Software Integrated Systems Vanderbilt University Nashville, Tennessee, USA CS 282 Principles of Operating Systems II Systems
Sending and Receiving Data via Bluetooth with an Android Device
Sending and Receiving Data via Bluetooth with an Android Device Brian Wirsing March 26, 2014 Abstract Android developers often need to use Bluetooth in their projects. Unfortunately, Bluetooth can be confusing
Android Programming. Android App. Høgskolen i Telemark Telemark University College. Cuong Nguyen, 2013.06.19
Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Android Programming Cuong Nguyen, 2013.06.19 Android App Faculty of Technology,
