Posted past times Hoi Lam, Lead Developer Advocate, Wear OS past times Google
At Google I/O, nosotros launched the Wear OS past times Google developer preview 2. This update added back upwards for Actions on Google (AoG) together with to a greater extent than power-related enhancements including a novel battery saver mode.
This developer preview includes updated Android Emulator images together with a downloadable organisation ikon for the Huawei Watch 2 Bluetooth or Huawei Watch 2 Classic Bluetooth. This preview unloosen is intended for developers entirely together with non for daily or consumer use. Therefore, the preview unloosen is entirely available via manual download together with flash. Please shout to the release notes for known issues before downloading together with flashing your device.
Support for Actions on Google
We convey revamped the Google Assistant on Wear OS to back upwards features such every bit visual cards, follow-on proposition chips, together with text-to-speech. For developers, nosotros added back upwards for Actions on Google to Wear OS together with existing Actions volition piece of work on Wear OS out of the box. Be certain to uncovering best practices for Actions on Google to larn the best results such every bit brusk concise dialog together with adopting to both visual together with song feedback. This characteristic does non depend on Android P together with is beingness rolled out to all Wear 2.0 users.Enhanced battery saver mode
In this Android P developer preview, nosotros are launching an enhanced battery saver mode. While the sentinel is inward this mode, the sentinel shows a power-efficient sentinel human face upwards together with turns off a laid of services including radios, the send upon screen, together with contestation to wake. Users tin hand the sack larn the fourth dimension past times pressing the side button. Influenza A virus subtype H5N1 long press allows the user to switch dorsum to a fully-operational trend together with perform tasks such every bit paying amongst NFC or replying to a message. Developers should assume that their apps, sentinel faces, together with complication information providers are non available inward enhanced battery saver mode.Update on ability saving features
We received much feedback on the ability saving features inward the in conclusion developer preview. As a result, nosotros convey updates on 2 features:- Roll dorsum of Wi-Fi off when BT is disconnected: To amend ability consumption, the in conclusion developer preview would non connect to Wi-Fi when disconnected from Bluetooth. After listening carefully to user together with developer feedback, nosotros decided to curlicue dorsum this change.
- Limited background activity together with foreground service: Influenza A virus subtype H5N1 number of wellness together with fitness developers convey said their apps require background monitoring of the user's motion together with other vitals throughout the day. The developers said their apps cannot perform background monitoring if background services are unable to laid alarms together with jobs. For these types of especial usage cases, nosotros recommend that the apps usage foreground services to anchor alarms together with jobs. For other use-cases, developer should facial expression at both foreground service every bit good every bit limiting jobs together with alarms to piece the sentinel is on charger. We are nevertheless fine tuning this feature, your feedback together with use-cases volition hold upwards well-nigh helpful inward helping us larn this right.
Smart Reply for bridged notifications
Smart Reply has been enabled for bridged notifications from the user's smartphone for around time. With the latest developer preview, nosotros are introducing simplified Chinese back upwards for our users inward China. This characteristic is powered past times an on-device model using TensorFlow Lite together with the model is optimized for low-memory, low-power devices.To usage this feature, developers should laid
setAllowGeneratedReplies
of the response activeness to true. Here's a sample code snippet amongst the of import operate highlighted inward bold: NotificationCompat.Action activeness = novel NotificationCompat.Action.Builder(R.drawable.ic_reply_white_24dp, replyLabel, replyPendingIntent) .addRemoteInput(remoteInput) .setAllowGeneratedReplies(true) // <--- truthful to enable smart replies // Wear OS requires a hint to display the response activeness inline. .extend(new NotificationCompat.Action.WearableExtender() .setHintDisplayActionInline(true)) .build();In addition, for messaging apps, nosotros recommend that developers usage
MessagingStyle
notifications. This tin hand the sack hand the algorithm a to a greater extent than structured information assail which to base of operations its recommendations. Please hand us your feedback
We hold off to render to a greater extent than updates to this preview before the concluding production release. Please submit whatever bugs you lot uncovering via the Wear OS past times Google number tracker. The before you lot submit them, the higher the likelihood that nosotros tin hand the sack include the fixes inward the concluding release.
Wear Bone Yesteryear Google: Aog Back Upwardly Too Novel Enhanced Battery Saver Mode
4/
5
Oleh
Admin