简体   繁体   English

具有 API 29 的 Android 仿真器上不存在多显示选项

[英]Mutliple display option not present on Android Emulator with API 29

I need to emulate an external display.我需要模拟外部显示器。

I get it with:我明白了:

fun getSecondDisplay(context: Context): Display? {
    val displayManager = context.getSystemService(Context.DISPLAY_SERVICE) as DisplayManager
    if (displayManager.displays == null || displayManager.displays.size <= 1) {
        return null
    }
    // We take the first additional screen
    return displayManager.displays[1]
}

Dispalys option is not present in "Extended controls": “扩展控件”中不存在显示选项: 在此处输入图像描述

Here is my config:这是我的配置: 在此处输入图像描述

I had a look at this post Multiple Displays option not showing on Android Emulator 29.2.0 update but doesn't help me我看过这篇文章Multiple Displays option not displayed on Android Emulator 29.2.0 update但对我没有帮助

It works with a same "Nexus 10" emulator config on API 30:(它适用于 API 30 上相同的“Nexus 10”模拟器配置:(

Emulator with x86_64, extended control "Displays" not visible.带有 x86_64 的模拟器,扩展控件“显示”不可见。

Emulator with x86, extended control "Displays" is visible.带有 x86 的仿真器,扩展控件“显示”可见

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法启动 API 29 模拟器(Android 10) - Unable to start API 29 emulator (Android 10) 使用 Android 10 (API 29) 在模拟器上查询 ContentProvider - Query ContentProvider on Emulator with Android 10 (API 29) MediaStore - BUCKET_DISPLAY_NAME 仅存在于 API 29+ 上? - MediaStore - BUCKET_DISPLAY_NAME only present on API 29+? 无法使用 API 29 android studio 在模拟器中运行应用程序 - Unable to run app in emulator with API 29 android studio android 模拟器 sdk 10 api 29 在重新安装和重启后不会启动 - android emulator sdk 10 api 29 won't start after remount and reboot 通知未显示 android API 29 - Notifications not showing android API 29 Android 通知未显示在 API 29 - Android notification not shown on API 29 如何在 M1 Mac 上运行比 api 29 旧的 android 模拟器(api 24、25 版本不起作用) - How to run older then api 29 android emulator on M1 Mac (api 24, 25 builds don't work) (实例中缺少 Vulkan 1.0 API)通过 Android Studio 3.5 和 3.6 Canary 9 启动 Android Emulator(Q API 29) 时 - (Vulkan 1.0 APIs missing from instance) when launching Android Emulator(Q API 29) via Android Studio 3.5 and 3.6 Canary 9 为什么 API 29 中引入的代码可以在运行 API 26 的模拟器上运行? - Why is code introduced in API 29 working on an emulator running API 26?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM