About the context menu: I can't open the file 1.bal (it gives an error for file type=12) with my b4a version (it's a little bit frustrating).
Looking inside such file with one Hex Editor, I see that there are just two views: EditText1 and WebView1.
So I created a new file 1.bal with such views, and this can be read by my b4a version.
I also changed the 'wait for' (that is unavailable in my version) with a do..loop including a DoEvents (I know, it's deprecated now), that breaks when ContextMenuClick_Event changes a boolean flag.
The program compiles without errors and runs on my device.
The contextual menu is fired when I make a longclick on one of the words in the webpage showed.
This happens only one time...
Exiting, then restarting the App, produces an "application not responding" error.
It's not so clear to me who starts the "ContextMenu_Create(ActionMode As JavaObject, FocusedView As View)".
It's the longclick on the webview text element ? edit: onActionModeStarted(ActionMode mode) in Java code ?
Why I don't see "Set As Title" and "Delete" contextual menus if I longclick a word of the EditText1 view ?
Sorry for the huge quantity of questions. I'm trying to understand how it works.
Thanks.