Android Question How to set Android 11 transparent status bar?

mywmshow

Member
I am very sorry for this problem using Google Translate.
The transparent status bar I set up with the following code has always worked well, but the following problems occur on Android 11.
B4X:
    Dim jo As JavaObject
    Dim window As JavaObject = jo.InitializeContext.RunMethod("getWindow", Null)

    If phone.SdkVersion >= 21 Then
        window.RunMethod("addFlags", Array(0x00000200))
        window.RunMethod("clearFlags", Array(0x04000000))
    Else
        window.RunMethod("addFlags", Array(0x04000000))
    End If
1.png



Error:
Unknown bits set in runtime_flags:0x40000000
2.png

How can I solve this problem, thanks!
 
Last edited:
Top