Android Intents & Sensors

Slides:



Advertisements
Similar presentations
Google Android Introduction to Mobile Computing. Android is part of the build a better phone process Open Handset Alliance produces Android Comprises.
Advertisements

 Updating organization profile  Approving new members  Adding new members  Changing positions and permissions  Adding positions  Customizing organization’s.
Intents.
Mobile Programming Pertemuan 6 Presented by Mulyono Poltek NSC Surabaya.
Real-Time Sensing on Android Reliable Mobile Systems Group Fiji Systems Inc. Yin Yan, Shaun Cosgrove, Ethan Blanton, Steven Y. Ko, Lukasz Ziarek
CS378 - Mobile Computing Sensing and Sensors. Sensors "I should have paid more attention in Physics 41" Most devices have built in sensors to measure.
CS378 - Mobile Computing Sensing and Sensors. Sensors "I should have paid more attention in Physics 41" Most devices have built in sensors to measure.
Chapter 1: Voilà! Meet the Android. Smartphones –Can browse the Web –Allow you to play games –Use business applications –Check –Play music –Record.
ACS-1805 Introduction to Programming 1805 introduces students to programming using technology for creating programs that run on Android devices. Android:
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 5: Investigate! Android Lists, Arrays,
Weaponizing Wireless Networks: An Attack Tool for Launching Attacks against Sensor Networks Thanassis Giannetsos Tassos Dimitriou Neeli R. Prasad.
Rajab Davudov. Agenda Eclipse, ADT and Android SDK APK file Fundamentals – Activity – Service – Content Provider – Broadcast Receiver – Intent Hello World.
Android for Java Developers Denver Java Users Group Jan 11, Mike
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
VMS PUSH for Marketing. Imagine a way to communicate your messages with more expression and feeling than ever before. Something that could.
Sensors – Part I SE 395/595.
By: Kyra Alexander.  Bubble Inclinometer ◦ Measures Range of Motion using small Device. ◦ Price: $50- $140.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Introducing Intents Intents Bind application components and navigate between them Transform device into collection of interconnected systems Creating a.
Sensors in android. App being more applicable Keeping track of your heart beat while jogging. Pointing the phone camera towards the night sky to know.
1.Accelerometer:Accelerometer in an iPhone. Definition: An accelerometer is a sensor which measures the tilting motion and orientation of a mobile phone.
Sensors For Mobile Phones  Ambient Light Sensor  Proximity Sensor  GPS Receiver Sensor  Gyroscope Sensor  Barometer Sensor  Accelerometer Sensor.
Lecture 4: Sensors Topics: Motion, Position, and Environmental Sensors Date: Feb 11, 2016.
1. Begin Quick Start 2. Administration 3. Good to Know 4. Slightly Technical 5. User Experience 6. You are ready to go !
Accelerometer based motion gestures for mobile devices Presented by – Neel Parikh Advisor Committee members Dr. Chris Pollett Dr. Robert Chun Dr. Mark.
CPE 490/590 – Smartphone Development
CHAPTER 8 Sensors and Camera. Chapter objectives: Understand Motion Sensors, Environmental Sensors and Positional Sensors Learn how to acquire measurement.
CS371m - Mobile Computing Sensing and Sensors.
The Doodlz app enables you to paint by dragging one or more fingers across the screen. The app provides options for setting the drawing color.
2014 Sensors in Motion   Software Engineer Lead  October 10, 2014 #GHC
CS371m - Mobile Computing Intents 1. Allow us to use applications and components that are already part of Android System – start activities – start services.
Sensors in Android.
Vijay Kumar Kolagani Dr. Yingcai Xiao
Lecture 4: Sensors Topics: Motion, Position, and Environmental Sensors
Lecture 1: Getting Ready
Lecture 4: Sensors Topics: Motion, Position, and Environmental Sensors.
Design Your Own Android App
MAD.
What's Happening Today Working with Images
Activities and Intents
Android Mobile Application Development
Object Oriented Concepts -I
Goal : Develop a software that converts arm movements into messages
Vijay Kumar Kolagani Dr. Yingcai Xiao
Design and Implementation
Panasonic UC Pro - Ver Rev1.0 7 Jun.,
Mobile Handset Sensors
Android App Computations
Vijay Kumar Kolagani Dr. Yingcai Xiao
MinePhones BMA CCAT Project v1.3 14/11/2018
Design and Implementation
Android Topics UI Thread and Limited processing resources
Android Topics What are Intents? Implicit Intents vs. Explicit Intents
Add to the Coffee Ordering App
EAP: Summary B. Ramamurthy CSE651C, B.Ramamurthy 1/16/2019.
Android Topics Threads and the MessageQueue
Android Topics Sensors Accelerometer and the Coordinate System
Android Programming Tutorial
Operating Systems : Overview
Introduction to AppInventor
Lecture 1: Getting Ready
Lecture 4: Sensors Topics: Motion, Position, and Environmental Sensors.
Operating Systems : Overview
Android SDK & App Development
Understanding Android Security
Emerging Platform#3 Android & Programming an App
It is used to Start an Activity Start a Service Deliver a Broadcast
Remind App A free text messaging app that helps teachers, students, and parents stay connected.
What Can I Do in the Heart Walk Mobile App?
Presentation transcript:

Android Intents & Sensors CSE651C, B.Ramamurthy 4/8/2019

References https://developer.android.com/reference/android/content/Intent.html CSE651C, B.Ramamurthy 4/8/2019

Intents What are intents? “An Intent provides a facility for performing late runtime binding between the code in different applications. Its most significant use is in the launching of activities, where it can be thought of as the glue between activities. It is basically a passive data structure holding an abstract description of an action to be performed.” Example it bridges the need for communication between apps: Android App1 Android App1 Intent CSE651C, B.Ramamurthy 4/8/2019

Email is a common intent See the code below for email intent: Intent intent = new Intent(Intent.ACTION_SENDTO); intent.setType("text/plain"); intent.putExtra(Intent.EXTRA_SUBJECT, "Subject of email"); intent.putExtra(Intent.EXTRA_TEXT, "Body of email"); intent.setData(Uri.parse("mailto:default@recipient.com")); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); CSE651C, B.Ramamurthy 4/8/2019

Use Cases “An Intent is a messaging object you can use to request an action from another app component. Although intents facilitate communication between components in several ways, there are three fundamental use cases:” Starting an Activity..like a timer within an app Starting an underlying Service.. Scheduler service Delivering a broadcast: push a message to a group. CSE651C, B.Ramamurthy 4/8/2019

Lets look at an example Simple App, that writes the text view to logs, but it can also send to an email specified. CSE651C, B.Ramamurthy 4/8/2019

Sensors Android supports a broad category of sensors: Motion sensors: accelerometers, gravity sensors, gyroscopes, and rotational vector sensors. Environmental sensors: for air temperature and pressure, illumination, and humidity Position sensors: orientation sensors and magnetometers. CSE651C, B.Ramamurthy 4/8/2019

Sensor Framework Sensor manager Sensor Sensor event 4/8/2019 CSE651C, B.Ramamurthy 4/8/2019

Example code: Accelerometer Lets explore the code and activity for an accelerometer sensor The code is available in ublearns. Download it and open it Lets review the code and execute the example If you upload it to your Android phone you can actually see it working. CSE651C, B.Ramamurthy 4/8/2019

Summary We looked at Android Intent and Android Sensors framework. These are very powerful features of Android that make it a comprehensive tool/device than just a phone Get deeper into these two topics for developing apps and also for adding other Intents and sensors. Automotive domain is a fertile area for exploration in Intents and sensors. CSE651C, B.Ramamurthy 4/8/2019