Android Question [SOLVED] Manifest if then else dark mode

makis_best

Well-Known Member
Licensed User
Longtime User
Hello everybody.

I add on manifest editor the code
B4X:
CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
    </style>
</resources>
)
so I can activate dark mode.

Is possible to use one if statement so the code be activated
when the device use Android 10 otherwise ignored.

If yes how?
Any code example?

Thank you.
 
Top