1 of 54

Android M & New Features

NYC-GDG Google I/O 2015 Recap

google.com/+DarioLaverde

2 of 54

What is M?

Mmmmm

3 of 54

What is M?

Mmmmm

“MNC” ??

4 of 54

What is M?

Mmmmm

“MNC” ??

Macadamia Nut Cookie!

5 of 54

What is M?

Mmmmm

“MNC” ??

Macadamia Nut Cookie!

(not so fast)

6 of 54

What is M?

Google has used both LMP (Lemon Meringue Pie) and KLP (Key Lime Pie) as internal code names for upcoming versions of Android (ex. lmp-preview-release in AOSP). Those names were abandoned for the official Lollipop and KitKat upon release

7 of 54

Goals for M

- reach the next billion

- improve user experience for Android ecoysystem - the platform not a GService

8 of 54

Roadmap for M

9 of 54

New features

Google Now - inside any app - “Now on Tap”

e.g. while music player is playing:

“OK Google who is the lead singer?”

10 of 54

App Permissions

App Permissions

- more contextual

  • exceptions: Camera app - best practice is a “warm welcome” asking for permission
  • otherwise e.g. micp remission in keep - only when called

TEST ON M EMULATOR

- even if not targeting M as things may break!

11 of 54

App Permissions

App Permissions

12 of 54

App Permissions

App Permissions

13 of 54

VoiceInteractor

14 of 54

Fingerprint

15 of 54

Android Backup

all apps data targeting M backed up by default

- but can opt in and out of parts

16 of 54

GPS 7.5 (Google Play Services)

GCM Network Manager - like JobScheduler but across releases

OneOffTask, PeriodicTask - limit network requests to wifi or charging or..

17 of 54

GPS 7.5 (Google Play Services)

App Invites - with deep links - friend recommendation

Cast Remote Display - Remote Display API (2 screens to display to)

18 of 54

GPS 7.5 (Google Play Services)

Smart Lock for Passwords - saved browser pwds in cloud - app can then use it (registered with gaccount) - this just one feature there’s more

Google Fit - adds exercise types consts

19 of 54

M Power Improvements

Doze

untouched devices become “inactive” - wait longer to wakeup bg tasks, but can resume…

App Standby

unused apps lose network accesss but resume when launched/used or plugged in

——

DATA BINDING!

20 of 54

Android Design Support Library

Coordinatorlayout

Snackbar

TabLayout

NavigationView

TextInputLayout

FAB

RecyclerView ItemTouchHelper - Swipe-to-dismiss, Drag & drop

WebView - PostMessage, WebViewClient, WebSettings.setOffscreenPreRaster()

21 of 54

Notifications

android.graphics.drawable.Icon

res id or Bitmap or byte[] holding a PNG or JPEG

22 of 54

Notifications

23 of 54

Data Binding !

24 of 54

App Links and Direct Share

25 of 54

App Links and Direct Share

26 of 54

Android Studio

Integrated testing support

Data binding

Vector Drawables

New annotations

Android NDK

27 of 54

Styluses

28 of 54

Tools

Systrace

Art

compiler optimizations

runtime stats:

29 of 54

External Storage

30 of 54

graphics and media

Render Script compute: BLAS, allocation-less launches, ScriptGroups

“TORCH” mode (flash light) w/o Camera dependency

Alpha optimization: auto hw optimization but set layer type manually when you need it

31 of 54

Audio

android.media.midi

high res audio:

Audio sample: single precision float

Sample rate: 96 kHz

USB digital audio: multichannel

32 of 54

New Android Developer Guide

A developing for android multi chapter guide on building better mobile apps on medium.com by Chet Hasse:

https://medium.com/google-developers/developing-for-android-i-understanding-the-mobile-context-fd2351b131f8

33 of 54

Android Wear

NYC-GDG Google I/O 2015 Recap

34 of 54

GPS 7.5 (Google Play Services)

  • Maps on Android Wear -

http://googlegeodevelopers.blogspot.com/2015/05/the-world-on-your-wrist-google-maps-api.html

https://github.com/googlemaps/android-samples

35 of 54

ATAP & Project Tango

NYC-GDG Google I/O 2015 Recap

36 of 54

Advanced Technology and Projects

unofficial day 2 “keynote”

https://plus.google.com/+GoogleATAP/videos

37 of 54

Goals of Project Tango

helps you let you know where you are e.g.:

- indoor navigation - project at Google using it for visually impaired

- robotics, AR, VR - 3d tracking capabilities

38 of 54

Project Tango components

1 Motion Tracking - like computer mouse… relative motion - but in 3D

2 Area Learning - can localize to previously seen maps

3 Depth Perception - infrared signals to measure floor, wall, furniture

39 of 54

Project Tango Tablet specs

40 of 54

41 of 54

42 of 54

43 of 54

44 of 54

45 of 54

46 of 54

demos

47 of 54

demos

48 of 54

demos

49 of 54

50 of 54

new ref design for phone factor

with announced partnership with

51 of 54

Contest!

52 of 54

53 of 54

m links

54 of 54

tango links

http://g.co/ProjectTango

updated contest deadline - June 29 (proposal)

https://www.google.com/atap/project-tango/contest/