Jetpack Window Manager - Android package that provides APIs for the masked area and hinge angle, which works on foldable devices from different manufacturers (including Surface Duo). Display mask and hinge angle - Surface Duo-specific APIs that help you detect the masked seam area and the hinge angle. In Visual Studio, click Tools Android Android SDK Manager. In Visual Studio for Mac, click Tools SDK Manager. In the lower right-hand corner, click the gear icon and select Repository Google (Unsupported): Install the Android 10 SDK Platform packages, which are listed as Android SDK Platform 29 in the Platforms tab (for more information. Location of Android SDK folder on Mac February 22, 2018. To determine where the Android SDK folder on your computer is located open Android Studio. Press the Android Studio menu in the toolbar and search for 'Android SDK' or navigate there via Appearance & Behavior, System Settings, Android SDK. For macOS, start Android Studio, then click Android Studio — Preferences menu item. Select Appearance & Behavior — System Settings — Android SDK menu item in the popup window left side. On the window right side, click the Edit link after the Android SDK Location text box, it will open the SDK Setup dialog.
-->There are three different ways you can enhance your apps for the Surface Duo:
- Dual-screen library - A set of layouts, controls, and helper classes that add dual-screen support to your app.
- Jetpack Window Manager - Android package that provides APIs for the masked area and hinge angle, which works on foldable devices from different manufacturers (including Surface Duo).
- Display mask and hinge angle - Surface Duo-specific APIs that help you detect the masked seam area and the hinge angle.
You can include only what you need in your application. See the instructions below to update your Android Studio project. How to download apps on mac.
Dual-screen library layout controls
A library of layout controls and helpers for Kotlin and Java developers:
To access these features add the required dependencies to your app. The library is available based on Jetpack Window Manager or the Display Mask API.
Jetpack Window Manager
Currently in alpha, the Jetpack Window Manager exposes the androidx.window API and supports the Surface Duo as well as foldable devices from other manufacturers.
Add this gradle dependency to include the Window Manager in your app:
Follow our Jetpack Window Manager guidance to use the API directly, or add dual-screen library and use the layouts and controls provided.
Display mask and hinge angle
Follow these steps to add the Display Mask API to your Kotlin or Java app:
Android Studio Mac Sdk Software
In the top-level build.gradle file, add these lines inside the
allprojects { repositories {
section:In your module-level build.gradle file, add these lines in the
dependencies {
section:Java projects should also add this line to their build.gradle dependencies, because the library is built with Kotlin (note that the
$kotlin_version
will need to be defined as well):
This provides the following features:
Higher level layout changes must be built by the app developer. See the dual-screen libraries for layout controls that help enhance your apps automatically.
Next steps
Android Studio Sdk Manager Mac
- Use the Surface Duo emulator to test and debug your apps.