android l preview - recents screen + api

13
L Developer Preview Recents Screen + API +Arun Nagarajan @entaq

Upload: arun-nagarajan

Post on 05-Dec-2014

198 views

Category:

Technology


0 download

DESCRIPTION

Talk given at NYC Android Developer Meetup

TRANSCRIPT

Page 1: Android L Preview  - Recents Screen + API

L Developer Preview Recents Screen + API

+Arun Nagarajan@entaq

Page 2: Android L Preview  - Recents Screen + API
Page 3: Android L Preview  - Recents Screen + API

● Task = collection of activities that users interact with

● Activities arranged in the back-stack in the open order within a task

Some terminology

Page 4: Android L Preview  - Recents Screen + API
Page 5: Android L Preview  - Recents Screen + API
Page 6: Android L Preview  - Recents Screen + API
Page 7: Android L Preview  - Recents Screen + API

What’s new in Android L Developer Preview?

Page 8: Android L Preview  - Recents Screen + API
Page 9: Android L Preview  - Recents Screen + API

● Open tabs in a web browser

● Documents in a productivity app

● Concurrent matches in a game

● Chats in a messaging app

● Flight/hotel searches in a travel app

Sample use cases

Page 10: Android L Preview  - Recents Screen + API

Intent intent = new Intent(this,RoomMapActivity.class);

intent.putExtra(RoomMapActivity.ROOM, roomId);

intent.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_DOCUMENT)

startActivity(intent);

How to use this?

Page 11: Android L Preview  - Recents Screen + API

● ActivityManager.getRecentTasks() is deprecated for privacy reasons. ­ Some of the tasks will still return

● ActivitiyManager.getAppTasks() added for app’s own tasks

Breaking changes

Page 12: Android L Preview  - Recents Screen + API

Thank you!+Arun Nagarajan@entaq

Page 13: Android L Preview  - Recents Screen + API