Author Topic: Android - dark mode / light mode  (Read 1411 times)

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1826
    • View Profile
Android - dark mode / light mode
« on: 2021-Nov-22 »
Hi

I had a few rejected submissions from the Galaxy Store for issue with app restarting / closing when switching between light and dark mode

This seems to resolve the issue

adding uimode to configchanges in manifest file
under SDLGLbasic activity section


   <activity android:name="SDLGlbasic"

            android:theme="@style/MyTheme"
            android:label="@string/app_name"
            android:screenOrientation="sensor"
            android:minAspectRatio="1.2"
            android:maxAspectRatio="2.4"
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode">


For anyone else who is adding Android apps to the Galaxy Store

« Last Edit: 2021-Nov-22 by MrPlow »
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10859
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Android - dark mode / light mode
« Reply #1 on: 2021-Nov-23 »
Added to the github repository.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1826
    • View Profile
Re: Android - dark mode / light mode
« Reply #2 on: 2021-Nov-23 »
Added to the github repository.

Thanks Gernot!
 =D
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4078
    • View Profile
    • Space Fractal
Re: Android - dark mode / light mode
« Reply #3 on: 2021-Nov-28 »
hey, that one was in a ealier build. but thanks for the notice. we should also let you able what mode its is eventuelly, which should not been that hard.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.