Pervasive Mobile Applications · 2012-10-19 · Pervasive Mobile Applications Embedded and...

Preview:

Citation preview

Pervasive Mobile ApplicationsEmbedded and environmental sensors

Notification ServicesNotification ServicesGoogle Cloud Messaging

Huber Flores, Satish Sriramahuber@ut.ee, srirama@ut.ee

25/09/12 1/20Huber Flores

Outline

• Pervasive applications

– Sensors

– Embedded

– Accelerometer, magnetic field, etc– Accelerometer, magnetic field, etc

– Environmental

– Microcontrollers (e.g Arduino)

– Sensor emulator implementation

• Notification services

– GCM

– Implementation25/09/12 2/20Huber Flores

Pervasive mobile applications

• Sensor information is acquired by

micromechanical artifacts

25/09/12 3/20Huber Flores

Pervasive mobile applications

• Accelerometer

25/09/12 4/20Huber Flores

Pervasive mobile applications

• Gyroscope

• Video stabilization

25/09/12 5/20Huber Flores

Pervasive mobile applications

• Magnetic field

25/09/12 6/20Huber Flores

Pervasive mobile applications

• Other sensors

25/09/12 7/20Huber Flores

Pervasive mobile applications

• Accessing sensor information: Demo

• Download source code

25/09/12 8/20Huber Flores

Pervasive mobile applications

• Sensor Emulator

• http://code.google.com/p/openintents/wiki/S

ensorSimulator

25/09/12 9/20Huber Flores

Pervasive mobile applications

• Sensor Emulator: Demo

• Download source code

25/09/12 10/20Huber Flores

Pervasive mobile applications

25/09/12 11/20Huber Flores

Push technologiesPush technologies

25/09/12 12/20Huber Flores

Notification services

• Push data to the mobile applications

25/09/12 13/20Huber Flores

Notification services

• GCM: Demo

• Download source code

25/09/12 14/20Huber Flores

Notification services

• Implement and configure server

• Tomcat

• Java

• Memory database

• Get the project ID for Google Console APIs

• https://code.google.com/apis/console

25/09/12 15/20Huber Flores

Notification services

• Declare the receivers and permissions

25/09/12 16/20Huber Flores

Notification services

• Set the sender and receiver parameters

• Registration ID

• Sender ID

• Project ID

25/09/12 17/20Huber Flores

Homework

• Adapt the given monitor application (accelerometer

code) to run in the Android emulator.

For those that got some errors when imported the

monitor application project, then just fix it by modifying

the Android API/Google APIs, this can be done by

Project -> Properties -> Android -> check option "Google

APIs" or "Android x.0" -> Apply

25/09/12 18/20Huber Flores

Recommended