android l preview - recents screen + api

Post on 05-Dec-2014

198 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Talk given at NYC Android Developer Meetup

TRANSCRIPT

L Developer Preview Recents Screen + API

+Arun Nagarajan@entaq

● Task = collection of activities that users interact with

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

Some terminology

What’s new in Android L Developer Preview?

● 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

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?

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

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

Breaking changes

Thank you!+Arun Nagarajan@entaq

top related