Vecino, paste the code from
this post into a new class module in your code. I would name the new class module xIME. Then, in your code, replace your
with
This way none of your existing code that uses the IME library will be broken. there will be three new properties: .ScreenHeight, .Visible, and .HardwareKeyboard. You can see the documentation in the code.
If your code does not use the IME library at all, it must be downloaded from
this thread, then unzipped into your Additional libraries folder, then the list of libraries (the [Libs] tab in the lower right corner of the Basic4Android editor screen) must be refreshed, and the IME library checked with a checkmark. Then in your code, add to Sub Globals
Add to Sub Activity_Create (not inside a FirstTime block)
IME.Initialize("IME")
IME.AddHeightChangedEvent
then use IME.Visible anywhere in your code.
Please pay attention to the bug report in my post directly above the post that has the class code in it. Even if your code is not affected directly, the new .ScreenHeight and .Visible properties will no longer provide valid values.