Surface Duo Blog

Activity Embedding preview for large screens and foldables

Hello Android developers, The Jetpack Window Manager (JWM) library helps you build adaptive UIs that work well on any device form factor (i.e. single screen, dual screen, foldable, and large screen devices). Jetpack Window Manager provides you with the information that you need to adapt your app’s UI, so it works well on any device...

Persisting and sharing ink

Hello Android developers! We have some updates to the InkSDK that we would like to share with you, as well as some general guidance on persisting ink and open ink standards. Overview While Android provides different canvases for rendering ink, there is little guidance on how to store that ink or what format it ...

Jetpack Compose Accompanist TwoPane

Hello Compose developers! This week, we’d like to talk about the TwoPane layout from Google’s Accompanist Adaptive library! Not to be confused with our own Microsoft Compose SDK TwoPaneLayout component, TwoPane from Accompanist is a fold-aware UI component that works great for cases when you always want to show two pieces...

Improving app accessibility with Jetpack Compose

Hello Jetpack Compose developers! This week, we’d like to share how we started improving the accessibility of our Compose samples. Accessibility in Android can relate to many different aspects of your apps, ranging from content descriptions and color contrast to layout hierarchy and touch target size. Regardless of where ...

Dual-screen example adds Jetpack Compose to the experience

Hello Compose developers! This week, we’re excited to announce two big updates to our dual-screen experience example: a Compose refactor of the catalog page and a brand new order history page. The dual-screen experience example provides an end-to-end experience centered around a travelling guitar salesperson, with options ...

droidcon Berlin and Surface Duo video collection

Hello Android developers! This week we were inspired by a forum question about interesting Surface Duo media content and provide a variety of different video and audio resources where you can learn more about Surface Duo, foldable devices, and dual-screen Android app development! If you want to chat in person, we’ll also be at ...

Test Kit Annotations update

Hello Android developers! We are excited to announce an update for the foldable Test Kit library. Test Kit provides utility methods and classes that help you write instrumented tests for large screen and foldable devices. This update adds annotations which are useful for creating tests for one posture at a time. Now, instead of ...

Video+Chat and Calculator samples for Jetpack Compose

Hello Jetpack Compose developers! Today we will be discussing the introduction of two new Jetpack Compose samples for Surface Duo. The first one is a video-streaming-chat-like app, and the second is a calculator app. We will also be going over some of the dos and don'ts when creating these types of apps, as well as dive into...

Google I/O 2022 recap

Hello Android developers, Another Google I/O has flown by, and we were excited to see sessions on foldable user experience design as well as developer-focused talks for updating existing apps to be more responsive and using Jetpack Compose. Here are our favorite sessions and announcements from the past few days: Flutter 3 announced...