Android 13 Update

Previous topic - Next topic

MrPlow

Due to Google deadline for updates : End of August (with option to extend to 1 Nov)
(for older apps to be visible to newer devices - and for older apps remain eligible to update going forward)

Currently, I need to look into getting my apps all updated on weekends after work.
It has been a while, but already had some luck with getting an app without dependency on gms and ads to work and run on my phone and Android 12 & 13

See below a test with the very useful Browserstacks app testing platform...

So far so good!

I am still on older version of Android Studio and gradle model (5.4.1) and build
classpath 'com.android.tools.build:gradle:3.5.4'


I will look into the whole new Android Studio setup after this and when my new Windows 11 Laptop arrives...


Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

There is a bug somewhere in my Logo App - doesnt like Android 12/13

But did a new compile of Solar Hunter - works fine! from Android 7 to 13

Ads working with 18.3.0 - gonna try 19.x.x next and maybe then 20.x.x? If not a hassle

Admob are keeping the 7.x.x to 19.x.x gms ads versions for a while yet - I think

I am using the platform Browserstacks for my device testing!! It is well worth the money for the time and hassle it provides  :D
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

I spoke too soon....
For weekend i was trying to resolve a strange issue where the app runs and works
from browserstacks and my apk builds on my phone...but NOT when installed from PLAYSTORE...

very strange - vulkin and bad-egl-display type errors...

So found similar issues happening for Unity users when building for unity...

I have managed to resolve now  :D  :booze:

Which is great - installs work from playstore now...

I will post here shortly with the fixes to do - quite simple...
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Okay - new problem - not huge though... Android 7 - 10 are not finding/playing audio files
11,12,13 are... any ideas?
 
The getcurrdir command is finding "data/data/com.appname"  etc etc.
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Okay here are the changes I made

Androidmanifest.xml

if using admob
<uses-permission android:name="com.google.android.gms.permission.AD_ID" />

then application changes

 <application
        android:isGame="true"
        android:label="@string/app_name"
        android:icon="@mipmap/ic_launcher"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:allowBackup="true"
        android:hasFragileUserData="true"
        android:banner="@mipmap/banner"
        android:hardwareAccelerated="true"
        android:resizeableActivity="false"
        android:extractNativeLibs="true"
        >

then activity
 <activity android:name="SDLGlbasic"
            android:theme="@style/MyTheme"
            android:label="@string/app_name"
            android:screenOrientation="sensorPortrait"
            android:minAspectRatio="1.2"
            android:maxAspectRatio="2.4"
            android:exported="true"
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode">


//In app for using admob 19.4.0
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.2.0'
    // GLBASIC_USER_NOTE AdMob - implement dependency
     implementation 'com.google.android.gms:play-services-ads:19.4.0'
}

then in gradle.properties file

org.gradle.jvmargs=-Xmx1536m
android.bundle.enableUncompressedNativeLibs=false


Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

The nativelibs parts helped the app work from a Playstore install!!
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Qedo

tried it and it's very nice big, the only problem but maybe it's my problem is the management of the direction keys
Perhaps they are too far away and often have to look at the position of my finger in relation to theirs.I don't know.
I will continue to play it to practice. Well done :booze:

MrPlow

Hi Qedo,
Glad you liked it :D
It was done a good while ago...
but I am updating all my apps for better visibility in Playstore and to keep them running well...

My only issue is now getting the loadsound to load / sound files for android 7,8,9,10
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Also on the controls - a direction is only needed to pressed once...
then press other arrow for changing the current direction...etc.

Quote from: Qedo on 2023-Sep-05tried it and it's very nice big, the only problem but maybe it's my problem is the management of the direction keys
Perhaps they are too far away and often have to look at the position of my finger in relation to theirs.I don't know.
I will continue to play it to practice. Well done :booze:
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

MrPlow

Hi Gernot, Spacefractal

Any idea why sdl mixer might not work with android 7.1 to 10 ...but 11,11,13 all are fine??
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

no idea. also im think make sure to uses full path and check if the file exists. Its long time ago im doing Android stuff really.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

#12
My previous sound issue for Android 6 - 10 was a non-issue - the platform involved for testing seems to have a sound bug for those versions.

My instructions and update steps above still follow---

I am now on my 5+ app update without any hitches...(using Android Studio 3.5.3 ) =D

API 33 (Android 13) and min 23

gradle 5.4.1, gradle plugin version 3.5.4

Admob 19.4.0

Soon with try to update to admob 20.1.0

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs