29
Google IO Dev Bytes

Google IO Devbytes 2014

Embed Size (px)

Citation preview

Page 1: Google IO Devbytes 2014

Google IO Dev Bytes

Page 2: Google IO Devbytes 2014

Contents

• What’s new in Android Lo Webview

o Android Job Scheduler

o Notifications

o Miscellaneous

• Google Play serviceso App Indexing API

Page 3: Google IO Devbytes 2014

One ‘L ’ of a release?

(Android L)

Page 4: Google IO Devbytes 2014

Webview

• Webview.setWebContentsDebuggingEnabled (true)

• Remote debugging of Android web views

• Screen Casting

https://developer.chrome.com/devtools/docs/remote-debugging

Page 5: Google IO Devbytes 2014

Android Job Scheduler

Page 6: Google IO Devbytes 2014

Concept

Make your apps Lazy

oReduce active time

oCoalesce tasks

oDefer tasks

Page 7: Google IO Devbytes 2014

Use Cases

• Non-user-facing work that you can defer.

• Work you'd prefer to do when the unit is plugged

in.

• Network(WiFi) dependent tasks.

• Periodic batch tasks.

Page 8: Google IO Devbytes 2014

Code Snippet

Page 9: Google IO Devbytes 2014

Execution Flow

Page 10: Google IO Devbytes 2014

Notifications

Page 11: Google IO Devbytes 2014

Evolution

Page 12: Google IO Devbytes 2014

Notifications in Android L

Page 13: Google IO Devbytes 2014

Lock screen Notifications

• Lock screens have the

ability to present

notifications

• Users can choose

via Settings whether to

allow sensitive

notification content to

be shown over a secure

lock screen.

Page 14: Google IO Devbytes 2014

Lock Screen Notifications

Page 15: Google IO Devbytes 2014

Heads up Notifications

• Grab user attention without

stealing focus from current

app

• User can swipe it away to

ignore

Use Cases

• Incoming phone call when

using device

• Alarm when using device

• New SMS message

• Low battery

Page 16: Google IO Devbytes 2014

And the rest….

Page 17: Google IO Devbytes 2014

More Recent Tasks

• Apps can open more

tasks as needed for

additional concurrent

activities

• Facilitates

multitasking by letting

users quickly switch

between individual

activities

Page 18: Google IO Devbytes 2014

Project Volta

Page 19: Google IO Devbytes 2014

Status Bar style

Page 20: Google IO Devbytes 2014

Multi networking APIs

Page 21: Google IO Devbytes 2014

Google Play Services

Page 22: Google IO Devbytes 2014

App Indexing

Page 23: Google IO Devbytes 2014

App Indexing API - Steps

Page 24: Google IO Devbytes 2014

Step 1 – Add deep link support

Page 25: Google IO Devbytes 2014

Step 2 – Verify Website

Page 26: Google IO Devbytes 2014

Step 3 – Publish Deep Links

Page 27: Google IO Devbytes 2014

Alternate Step 3 – Deep Links via API

• Specify web and app Uri in app itself

• Use App Indexing APIs bundled in Google play

services v5.0

https://developers.google.com/app-indexing/webmasters/appindexingapi

Page 28: Google IO Devbytes 2014

References[Google IO video sessions]

https://www.google.com/events/io/io14videos

[Android L API overview]

https://developer.android.com/preview/api-overview.html

[Android Web view remote debugging]

https://developer.chrome.com/devtools/docs/remote-debugging

[Job Scheduler]

Github sample code : https://github.com/googlesamples/android-JobScheduler

Dev Bytes Video : https://www.youtube.com/watch?v=QdINLG5QrJc

[App Indexing]

Dev Bytes video : https://www.youtube.com/watch?v=UjLJoMWSXts

Developer Guidelines :

https://developers.google.com/app-indexing/webmasters/appindexingapi

https://developer.android.com/training/app-indexing/enabling-app-indexing.html

Page 29: Google IO Devbytes 2014

Thank you!