Commit Graph

6 Commits

Author SHA1 Message Date
Jeff Chang
193d1ded11 Adding singleInstancePerTask type activity in IntentPlayground
Bug: 187124445
Test: build
Change-Id: I684a9327267273efd7a19df0f0897e597c10543d
2021-05-04 11:38:16 +08:00
Louis Chang
835cd2ba83 Add an exported flag in manifest
With c4e90ac, the android:exported flag has to be explicitly defined
if an intent filter is defined.

Bug: 171447284
Test: install IntentPlayground
Change-Id: I4f86ceeef70e7572707f548f0583011a0f0823ad
2020-10-22 13:01:25 +08:00
Liam Clark
ba9b6ca212 IntentPlayground start activities for result
Test: Manual
Change-Id: I3004e6dd76c026e41d2c9a28f4dd59664f99cd09
2019-01-17 15:38:11 -08:00
Liam Clark
a2f0b5d456 Move launch default activity prompt to the menu
Instead of asking at startup, the prompt now launches from a menu item.
This also get's rid of the snackbar because it was causing bugs with
rotation.

Furthermore now the android.permission.SYSTEM_ALERT_WINDOW permission is
no longer needed.

Test: Manual
Change-Id: I566e58d4844aecf127b5198c050ff115de7e4919
2018-12-03 13:41:48 -08:00
Liam Clark
bd43fbe931 Intent Playground sample application
The app allows a user to explore the behaviour of different
launch modes, task affinities and intent flags.

It displays the current state of all tasks in the application
and their corresponding flags.

It allows the user to launch a set amount of activities on launch.
This bring the user directly into a state where many options for
exploration are available, rather than having to go through a
complicated setup first.

Access the activity field of RecentTaskInfo using reflection and mirror
the ActivityInstanceInfo into our own value object. This breaks
the compile time dependency on the ActivityInstanceInfo api and turns
it into a runtime dependency.

If the api is missing on the device we can still show the task structure
and log an error with the missing activity instance info.

Known bug: The enable suggestion button crashes the application.
Test: Build and Run

Change-Id: Id0274bae159c16aee6dccd805deb53851ffcf21d
2018-11-26 11:37:35 -08:00
Willie Koomson
2bf50179b3 The base files for the project & activities and XML resources
Test: build and run manually
Change-Id: I6eb7f1a444703e99f592ac9106261f9c6bd90127
2017-07-12 12:08:15 -07:00