Google IO Dev Bytes
Contents • What’s new in Android L o Webview o Android Job Scheduler o Notifications o Miscellaneous • Google Play services o App Indexing API
One ‘L ’ of a release? (Android L)
Webview • Webview. setWebContentsDebuggingEnabled (true) • Remote debugging of Android web views • Screen Casting https://developer.chrome.com/devtools/docs/remote-debugging
Android Job Scheduler
Concept Make your apps Lazy o Reduce active time o Coalesce tasks o Defer tasks
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.
Code Snippet
Execution Flow
Notifications
Evolution
Notifications in Android L
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.
Lock Screen Notifications
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
And the rest….
More Recent Tasks • Apps can open more tasks as needed for additional concurrent activities • Facilitates multitasking by letting users quickly switch between individual activities
Project Volta
Status Bar style
Multi networking APIs
Google Play Services
App Indexing
App Indexing API - Steps
Step 1 – Add deep link support
Step 2 – Verify Website
Step 3 – Publish Deep Links
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
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
Thank you!

Google IO Devbytes 2014