android - 在模拟器中全屏运行应用程序时出现问题

标签 android android-emulator

我创建了一个面向 2.1 且屏幕尺寸为 480x800 (WVGA) 的设备。一些应用程序,包括我目前正在编写的应用程序,以及 ApiDemos 示例,将无法全屏运行。我在这里上传了一个截图:http://img248.imageshack.us/img248/503/emulator.png

什么会导致这样的事情发生?如果我在我的 HTC Desire(具有相同的分辨率)上运行这些应用程序,它们会按应有的方式使用整个屏幕。

最佳答案

好吧,我终于找到了解决方案。如果其他人遇到同样的问题,解决方案是将以下内容添加到您的 AndroidManifest.xml 中:

<supports-screens
    android:smallScreens="true"
    android:normalScreens="true"
    android:largeScreens="true"
    android:anyDensity="true" />

关于android - 在模拟器中全屏运行应用程序时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2984021/

相关文章:

安卓测试 : how to click on dialog box's button?

android - 尝试使用 uiautomatorviewer 拍摄快照时出现“adb not installed”错误

android - 运行android模拟器时出现问题

java - 从 onStopCommand 返回是否会结束 Android 服务?

android - 默认样式 Jetpack 组合

android - Creative sdk 编辑屏幕在手机中停留在纵向模式

android - 如何在 VMware Windows 10 虚拟机中运行逍遥安卓模拟器?

android - 在 Windows 中更改模拟器电池电量

android - Google Play 中付费应用的深层链接促销代码

android - 如何按 PlaceType 过滤 Place Picker 的结果?