N Noel Member Licensed User Longtime User Feb 10, 2015 #1 I've got a simple app with just as Activity a WebView in it (loading a local flash file) WebView is set to 100% screen filling. I would like to exit the app (ExitApplication) when clicked on the Activity WebView. B4X: Sub Activity_Click ExitApplication End Sub For some reason I can not get this to work when using WebView! Does Activity_Click not work when clicking WebView?
I've got a simple app with just as Activity a WebView in it (loading a local flash file) WebView is set to 100% screen filling. I would like to exit the app (ExitApplication) when clicked on the Activity WebView. B4X: Sub Activity_Click ExitApplication End Sub For some reason I can not get this to work when using WebView! Does Activity_Click not work when clicking WebView?
Erel B4X founder Staff member Licensed User Longtime User Feb 10, 2015 #2 No. WebView consumes the touch event. You can probably add JavaScript code to the web page that will navigate to a different url. You can then handle OverrideUrl event and do whatever you like. Upvote 0
No. WebView consumes the touch event. You can probably add JavaScript code to the web page that will navigate to a different url. You can then handle OverrideUrl event and do whatever you like.
N Noel Member Licensed User Longtime User Feb 10, 2015 #3 Understood and will test it. Thank you. Upvote 0