Android Question Back to fullscreen after using the keyboard

appie21

Active Member
Licensed User
Longtime User
Hello

I use a program that run fullscreen
I use:

B4X:
Sub Activity_WindowFocusChanged(HasFocus As Boolean)
If HasFocus Then
   Dim jo As JavaObject = Activity
   jo.RunMethod("setSystemUiVisibility", Array As Object(5894)) '3846 - non-sticky
End If
End Sub


But when I use the keyboard and close it the application will not go back to full screen( the bar with the back and home button are visible) if i want close/hide the keyboard with a code

I use:
B4X:
        Dim K As Phone
        K.HideKeyboard(Activity)

I add:

B4X:
       Dim jo As JavaObject = Activity
           jo.RunMethod("setSystemUiVisibility", Array As Object(5894)) '3846 - non-sticky
        Activity.Height = -1
        Activity.Width = -1

But the bar in the bottom not go away
How can I fix this?


oops not fixed anyone an idea?
 
Last edited:
Top