Sei sulla pagina 1di 2

What is mobile computing?

- mobility (wireless connectivity, power), sensing (from sensing, - First time launched app:
obtain context). computation - if savedStateInstance == null

-Fixed network / wired machine - desktop (traditional computing) -Sensors and ecosystem
-Sensor manager
-Mobile / Wired - could move from one network to another, but -MC Ideas
wired (laptops)
> Sensor: measures & converts physical quantity into a single
-Fixed / wireless (potentially battery powered): ex. nest, songs > actuator: accepts energy and produces movement
speakers
sensor types: accelerometer (change in speed / measures
-Mobile / wireless: mobile computing acceleration along axes), gyroscope, gps, proximity,
gyroscope(measures rotational change along axes), light,
Nomadic computing: mobiel /wired & mobile & wireless microphone, camera, screen, fingerprint, magnetic
-Wireless computing: mobile / wired & fixed / wireless & mobile / field(compass), wifi, cellular connectivity (radios)
wireless
Intents
-Applications: mHealth(wireless health, mobile health), IRB - internal review board
geolocation games, activity monitor, garmin connect, uber Acceerometer /

Why are there bigger leaps today? *raw sensor v. composite sensor
- HW (hardware) > Moores law - chip : lower power, > software v hardware sensor
area, higher
- cheap sensor sensor manager class
-smart phones became open and programmable
-App stores became available (extension of phones > gravity sensor
original capabilities)
-offload computation Linear acceleration
-Person sends query (voice / text) sent to > accelerator with impact of gravity removed
database > sends back info / response > Xacc - Gravity = XlinearAcc
- Wireless connectivity - broadband
Gyroscope: rotation ins 3 axes
-pervasive computing v ubiquitous computing > counter clockwise: positive direction
-pervasive computing (linked):
- goes deep into ones life (different > y: roll, x: pic, z: yaw
parts of a persons life: home, work, sleep)
Context aware computing

def: mobile computing paradigm in which application discover


and take advantage of contextual info
- ubiquitous computing:
- in accordance with ones location: Types of context:
home, restaurant, airplane - User - location, people nearby, current social situation,
activity
- Software Architecture of Android -low-level context (location)
- Full Stack: - high level context (current social situation,
- Layers: activity)
- Application Layer - Physical - lighting, noise level, temperature, traffic
- Application Framework conditions
(written in java) - Time - time of day, season
- Application made - Contextual history
by google / other developers - Computing context - network connectivity,
- Middleware communication bandwidth, nearby resources such
- Core libraries: utilities as printers
(written in java)
- Native libraries: surface,
graphics (written in c, c++) How to use the context
- OS -Passive - determine context and present to user
-Active - determine context and adapt application
- MVC (model - view - controller) behavior
- View (redraw) > user (taps, key presses,
etc) > controller (update) > model -Proximate selection
(invalidate) > Back to View - UI technique where nearby objects
emphasized
-Model: contacts database
Activity life cycle:
- Automatic contextual reconfiguration
- created with onCreaste method
- Add / remove components based on context
-Started: visible
- Night - dim screen

@override -Context triggered actions


protects void onSaveStaateInstanceStae (Bundle outstate) - Voice of user - male / female, bathrooms
super based on gender
outstate.putInt(Count, count);
- Location - awareness
- Change device oerientation: - Location - aware computing
-savedStateInstance.getInt(Count) - GPS, cell - id, wifi
- How to select - battery, availability,
accuracy, speed

geocode: longitude, latitude.

Reverse geocoding

geocode gcd = new geocoder( mainactiivty.thiss,


locale.getdefualt

addresses = gcd.getFromLocation();
toast.maketext

Maps

Google maps api


Open street map

GPX - GPS exchange format


XML

Google maps
- API key
- Terms of service
- Legal notices
- or about section
- Google play attribution
- Map fragment

Potrebbero piacerti anche