Files
android_development/samples/ApiDemos
Hongwei Wang 17aab38616 Consolidate PiP demos in ApiDemos app
Put various configurations for PiP into one Activity, access by navigate
to `App > Activity > Picture in Picture`. Current supports

- Enter PiP with on-screen button
- Enter PiP by swiping up to home or tap on home button
- Toggle the auto enter PiP flag on and off
- Toggle the source rect hint on and off
- Toggle the seamless resize flag on and off
- Change the position of current and next source rect hint
- Tablet layout on foldables

The upcoming content PiP will also be hosted here.

Added also support passing the intent extra, full command

```
adb shell am start \
    --ez auto_pip [true|false] \
    --ez source_rect_hint [true|false] \
    --ez seamless_resize [true|false] \
    --es current_position [start|end] \
    com.example.android.apis/.app.PictureInPicture
```

Bug: 175727044
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/gdcklbUsT7SmbUhNcVSXfd
Test: manual, see Video
Change-Id: I60233f2d6e428d11d4ab1b566e36c38fd4c4f937
2021-12-21 13:48:31 -08:00
..
2021-12-21 13:48:31 -08:00
2021-05-18 23:08:25 -07:00
2018-11-19 18:05:33 +00:00
2021-05-18 23:08:25 -07:00
2018-11-19 18:05:33 +00:00

The API Demos application includes a variety of small applications 
that illustrate the use of various Android APIs. It includes samples of:
  - Notifications
  - Alarms
  - Progress Dialogs
  - Intents
  - Menus
  - Search
  - Persistent application state
  - Background Services
  - App Widgets
  - Voice Recognition
  - And many many more...

Api demos is designed to use the compatibility library "android-support-v4.jar".
It is available through the SDK Updater in the "Android Compatibility package".
Once downloaded, copy the jar file into the ApiDemos project libs/ folder.
(If using Eclipse, add it manually to the project build path).