Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introducing Android P

Introducing Android P

Panini

May 08, 2018
Tweet

More Decks by Panini

Other Decks in Technology

Transcript

  1. About Me • Matthew Vern / Panini • Twitter: @callipan

    Github: panpanini • Mercari, Inc • Android Engineer (US) • Kotlin可愛い
  2. About Me • Matthew Vern / Panini • Twitter: @callipan

    Github: panpanini • Mercari, Inc • Android Engineer (US) • Kotlin可愛い • [email protected]
  3. Android P • Developer Preview 1 ◦ Released March 7

    2018 ◦ Initial preview, so not yet stable ◦ Only available by manually flashing your device, or emulator • Developer Preview 2 ◦ Most likely released at Google I/O 2018 ◦ More stable, will be available as OTA update
  4. Features • Display Cutout • JobScheduler data cost • Multi-camera

    • Indoor Positioning • Image Decoder • HDR VP9 Video & HEIF • Neural Networks 1.1 • Notification improvements • Rotation lock • etc...
  5. Display cutout For devices like Essential Phone, or iPhone X

    which have a cutout in the display (for camera, etc).
  6. Display cutout • Clock has moved • Notifications only show

    on the left • Limited space (Tall only shows 4)
  7. Notifications • Images in messaging notifications • Messaging notifications now

    take a Person object for sender instead of CharSequence
  8. ImageDecoder • More powerful than BitmapFactory • Decode into Bitmap

    or Drawable • setResize(width, height) • setCrop(rect) • OnHeaderDecodedListener
  9. PostProcessor • Called after image decoded ◦ int onPostProcess(Canvas canvas)

    • Can use this to apply rounded corners etc • Should return if the image is translucent ◦ UNKNOWN - This process didn’t add translucent pixels ◦ TRANSLUCENT - This process added translucent pixels ◦ OPAQUE - This process made the entire image opaque • Returning any other status code will result in IllegalArgumentException
  10. ImageDecoder • Support Library? • Uses Native code, so unlikely.

    ◦ Can only use ImageDecoder on minSdkVersion 28
  11. ImageDecoder • Support Library? • Uses Native code, so unlikely.

    ◦ Can only use ImageDecoder on minSdkVersion 28 •
  12. Indoor positioning API • Positioning using Wifi • Requires hardware

    support (IEEE 802.11mc) ◦ Both on device and access point (AP) • Can use to triangulate location indoors
  13. Android Things • Finalized APIs • Looks like it will

    get a 1.0 release this year • 1.0 was released this morning • https://android-developers.googleblog.com/2018/05/say-hello-to-android-thing s-10.html
  14. Slice • A slice is a piece of app content

    and actions that can be surfaced outside of the app. • Similar to RemoteView • For Google Assistant?
  15. Flutter • Many sessions for it announced now, so possibly

    something big • ??? • Flutter Meetup Tokyo #2 (5/31)
  16. Flutter • Many sessions for it announced now, so possibly

    something big • Flutter Beta 3 announced this morning • ??? • Flutter Meetup Tokyo #2 (5/31)
  17. Summary • Developer Preview 2 release • Display Cutout •

    Material Design 2 • Gesture Navigation • ImageDecoder • Slices (Google Assistant UI?)