Skip to first unread message
Assigned to halatmi...@gmail.com by taifu...@gmail.com

Forrest Kendall

unread,
Mar 20, 2016, 6:19:05 PM3/20/16
to MIT App Inventor Forum
I have an App that calls the screen .HideKeyboard procedure.  I want to make sure that just in case the user forgets to click (touch) the "DONE" button on the keyboard that the keyboard closes regardless when navigating to another entry field on the screen.  However, making a call to .HideKeyboard produces the following alert message:

Error 906: No Focusable View Found

This error is only displayed the first time .HideKeyboard is called when there is no keyboard displayed (If the keyboard is displayed the error does not occur).  The error does not display with the APK; it only occurs in the AI Companion when testing.

It would be helpful to have a new screen property .KeyboardVisble (or something like this).  Then .HideKeyboard could be conditionally called.  Example code below:

IF Screen1.Keyboard.Visible THEN
  Screen1.HideKeyboard

Any thoughts or comments would be appreciated.  THANKS!
Screenshot_2016-03-20-16-08-35 Error 906.png

Taifun

unread,
Mar 20, 2016, 7:17:43 PM3/20/16
to MIT App Inventor Forum
which version of the companion app are you using?
Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.


Forrest Kendall

unread,
Mar 20, 2016, 8:19:07 PM3/20/16
to MIT App Inventor Forum
Ai Companion V 2.36

Taifun

unread,
Mar 20, 2016, 8:42:42 PM3/20/16
to MIT App Inventor Forum
Please prepare an example as small as possible, which demonstrates this issue and add the project (aia file) into this thread, so someone can take a look

Forrest Kendall

unread,
Mar 20, 2016, 9:18:58 PM3/20/16
to MIT App Inventor Forum
Attached is a one button app.  Click the button to generate ERROR 906.
Error906.aia

Forrest Kendall

unread,
Mar 20, 2016, 9:24:50 PM3/20/16
to MIT App Inventor Forum
Small correction to original problem description ... Error 906 is also generated in the APK version of the App.

Taifun

unread,
Mar 20, 2016, 10:08:32 PM3/20/16
to MIT App Inventor Forum
to fix this, just drag an empty Screen,ErrorOccurred event into the working space like this

@MIT: is this a bug or a feature?
Taifun
Reply all
Reply to author
Forward
0 new messages