我在 Android 上的 Android OpenGL 应用程序的用户分辨率低于支持的分辨率

发布于 2024-10-19 07:48:29 字数 999 浏览 6 评论 0原文

我正在使用具有 480x854 像素分辨率的 Motorola Defy,在其中测试 OpenGL ES 应用程序,但我无法让我的 OpenGL 表面在手机的全分辨率上运行。

我阅读了有关它的其他问题,并且我已经像这样设置了我的清单:

<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true" android:name="com.test.game.MyApplication">
    <activity android:name="com.test.game.VikingsActivity"
              android:label="@string/app_name"
              android:theme="@android:style/Theme.NoTitleBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

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

但它仍然无法工作。我缺少什么?

I'm using a Motorola Defy which has a 480x854 pixel resolution in which I'm testing an OpenGL ES application, but I can't get my OpenGL surface to run on my phone's full resolution.

I read other questions on it and I have already setup my manifest like this:

<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true" android:name="com.test.game.MyApplication">
    <activity android:name="com.test.game.VikingsActivity"
              android:label="@string/app_name"
              android:theme="@android:style/Theme.NoTitleBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

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

But it still won't work. What am I missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一瞬间的火花 2024-10-26 07:48:29
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
掌心的温暖 2024-10-26 07:48:29

这修复了我的应用程序的问题:

<uses-sdk android:minSdkVersion="15" />

标记之前添加。

This fixes it for my app: Add

<uses-sdk android:minSdkVersion="15" />

before your <application> tag.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文