r/androiddev • • Oct 25 '17

Android 8.1 Developer Preview

https://developer.android.com/preview/index.html
57 Upvotes

17 comments sorted by

View all comments

21

u/well___duh Oct 25 '17 edited Oct 25 '17
  • Neural networks API - on-device machine learning operations

  • Notifications

    • Apps can now only make a notification alert sound once per second. Any alerts that exceed this rate are ignored.

    • NotificationListenerServices and ConditionProviderServices are no longer supported on low-ram devices

  • Play Store filters for low-ram devices

  • Autofill improvements

  • EditText.getText() now returns an Editable instead of a CharSequence. This is backwards compatible.

  • Devs can programmatically define how to respond to unsafe websites from embedded WebViews in their apps instead of Google just saying "hey this is a bad site, mkay?"

  • New API to extract a thumbnail from a video from a specific timestamp/frame, less memory intensive

  • Shared memory API for sharing memory used across multiple processes or apps (mainly for devs with multiple apps that communicate with each other)

  • WallpaperColors API, basically a Palette API meant specifically for your wallpaper.

  • New fingerprint error codes

    • Error if user tried too many times to unlock their device unsuccessfully

    • OEM-specific error, probably hardware-related

https://developer.android.com/preview/api-overview.html

EDIT: Some more changes I found not listed in the changelog:

  • Explicit API for activities to be shown on top of the lock screen. I believe before there was some wonky way of doing that (think Google Maps and the Phone app showing after you lock your phone) EDIT: It was previously done through the WindowManager.

  • API for an activity to turn the screen on when resumed

  • Play Store filter for if the device is a PC

  • Play Store filter for if the device supports WiFi Passpoint

=====

Timeline for updates

  • Preview 1 - APIs are finalized, out right now

  • Preview 2 - out mid-November

  • Final - out sometime in December

Devs are able to publish apps supporting Android 8.1 right now. 8.1 beta supports:

  • Nexus 5X

  • Nexus 6P

  • Nexus Player

  • Pixel 1 & 2

  • Pixel 1 & 2 XL

  • Pixel C

New backwards-compatible APIs (support library)

  • Support fragments can now use support transitions for fragment transitions, including shared-element transitions

  • Support ContentPager now supports paging content exposed via a ContentProvider

  • ViewCompat has wrappers for autofill methods

  • Instant Apps runtime permissions a-la Android 6 backported to Android 5 (Instant Apps only)

  • Trusted custom tabs support

  • Simpler ambient mode support for Android Wear

  • More deprecated classes (either soon-to-be-removed or moved from android.support.v7 to android.support.v4)

  • Can now create RoundedDrawables via XML

  • And more with bug fixes

https://developer.android.com/topic/libraries/support-library/revisions.html

1

u/gonemad16 GoneMAD Software Oct 25 '17

couldnt support fragments always use support transitions? pretty sure i've used them before

1

u/well___duh Oct 25 '17

Nope. The support fragments used native transitions.