Keyboard - additional methods for the keyboard

Working OK here. Are you using the emulator, or companion with real device

How to avoid runtime errors with the companion app

  1. After importing an extension, please restart the companion app.
  2. If you like to use an extension on a different screen, in Screen1 additionally drag the extension into the working area.

While starting the companion app, all necessary assets and also the imported extensions of your project will be copied to your device. So in case the no such class error shows up, the extension code to run the extension is not available on your device. Without that code the companion app is not able to execute methods from the extension.

In case restarting the companion app does not work for you after trying several times, then as it looks like the only way for you to test you app will be after building it using the apk file.

Taifun

trying both....runtime error was the emulator; progress bar just shows "0%" with the companion
plus...how do i catch the "enter/done/go" key on the built-in keyboard...then check the text box??

trying both....runtime error was the emulator; progress bar just shows "0%" with the companion
plus...how do i catch the "enter/done/go" key on the built-in keyboard...then check the text box??

text_focus (1).aia (12.5 KB)

Does it make sense to use helper blocks for the button actions since every AppInventor distribution supports them now?

Does Kodular also use helper blocks? The extension is old, when I made it Kodular didn't use helper blocks so I didn't add them.

Yes it does, in the newer versions.

Updated, added method (KeyboardChangeScreen) that allows keyboard to be displayed over components without moving them.

1 Like

I used an extension to fix a problem that the blocks in mit cannot do which is that everytime the keyboard pops ups, the screen background shrinks. I tested it in companion mode and it works, but when I made it into an apk and installed it on my phone, the problem occurred again which means the extension did not work. What causes this?

Which extension are you talking about?
Please provide a link to the extension and a screenshot of your relevant blocks

Which problem? Please elaborate, see also

Taifun

this is the normal screen

this is the problem when keyboard pops up

I now moved your question into its correct thread
Also I removed the extension from your post, because only extension authors are allowed to upload their extensions
Taifun

Put your aia project here so I can test it.

But before you do that, place the "Keyboard Change Screen" block in the Initialize blocks of the screen. It is called once, and calling it in GotFocus may be too late...

Sorry for the wrong posting, I am new here
Anyways, You are definitely right the got focus was too late, I put the keyboard change screen on the screen initialize and it perfectly works now.
THANK YOU VERY MUCH..

1 Like