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":
I had a look at this post Multiple Displays option not showing on Android Emulator 29.2.0 update but doesn't help me
It works with a same "Nexus 10" emulator config on API 30:(
Emulator with x86_64, extended control "Displays" not visible.
Emulator with x86, extended control "Displays" is visible.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.