Android Extras 3 - Weird screen size return.

Previous topic - Next topic

UBERmonkeybot

I have installed AE 3.01.1 and now my Tablet is returning a desktop of 1728x1080 its usually 2560 x 1600.

When i swap back to AE 2.11.2  all is fine.

:S

spacefractal

What is in res/strings.xml as well in andrlidmanifest.xml?

There is some limits you can set, etc here seens limit default set to 1080p.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

UBERmonkeybot

Res String is ..
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">circlegame</string>
   <string name="com.google.play"></string>
    <string name="com.ouya.shop"></string>
</resources>


manifest is


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.company.title"
      android:installLocation="preferExternal"
      android:versionCode="1"
      android:versionName="1.00">
    <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19" />
   <uses-permission android:name="android.permission.INTERNET" />
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.WAKE_LOCK" />
   <uses-permission android:name="android.permission.BLUETOOTH" />
   <supports-screens android:resizeable="false"
                 android:smallScreens="true"
                 android:normalScreens="true"
                 android:largeScreens="true"
                 android:anyDensity="true" />
    <application android:label="@string/app_name" android:icon="@drawable/icon" android:debuggable="false">
        <activity   android:name="org.libsdl.app.SDLActivity"
               android:label="@string/app_name"
               android:screenOrientation="sensorLandscape"
               android:configChanges="orientation|keyboardHidden|screenLayout|uiMode|screenSize"
               >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="tv.ouya.intent.category.GAME" />               
            </intent-filter>
        </activity>
      
    </application>
</manifest>

spacefractal

#3
im thinks its a bug in SDLActivity.Java.

To do a the simple around, you can add this to the res String and return the max y resolution you might want to been support:

<string name="Max_Y_Resolution">2048</string> under <resources>

If this string is not send, then its will uses 1080 as y max resolution and set that as a surface, and then your device will upscale. If you add 2048, then 2048p would been max resolution and been calculated a upscaling from there (if the screen resolution is bigger of course).

Im did that code around v3.00, because upscaling surface is MUCH much faster than any glbasic code. But 1080p should not have been the default limit.

Other changes you can do:

- com.company.title to your own title.
- <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22" />
- add android:xlargeScreens="true" as a supported screen.

If you not using Ouya, you can remove the Ouya line without problem.

PS. Since this is really a bug (but is easy to work around), im move this to the bug section as well. Its will been fixed in the next release or AE.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

UBERmonkeybot