开发者

My Android OpenGL app on Android is user lower resolution than supported

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:na开发者_JS百科me="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?


android:theme="@android:style/Theme.NoTitleBar.Fullscreen"


This fixes it for my app: Add

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

before your <application> tag.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜