Aug 24, 2021 Replies: 5 I noticed a lot of beginners are confused about how to use the WebViewExtras library so I made a detailed example. If you find it useful, kindly consider buying me a coffee. Code works on Android 4.4 to Android 14 (last tested version). It should work for the latest Android versions but I haven't tested it. UPDATE: Added sample for WebViewExtras v1 Added sample for WebViewExtras v2 Maybe if I am free again later I will add a file uploading sample. I haven't tested it well yet so I cannot add it now. Attachments WebViewExtras.zip WebViewExtras.zip 12.5 KB · Views: 2,003 WebviewExtras2Example.zip WebviewExtras2Example.zip 7 KB · Views: 1,331 Last edited: Mar 17, 2025 Click to expand...
I noticed a lot of beginners are confused about how to use the WebViewExtras library so I made a detailed example. If you find it useful, kindly consider buying me a coffee. Code works on Android 4.4 to Android 14 (last tested version). It should work for the latest Android versions but I haven't tested it. UPDATE: Added sample for WebViewExtras v1 Added sample for WebViewExtras v2 Maybe if I am free again later I will add a file uploading sample. I haven't tested it well yet so I cannot add it now.
FrostCodes Active Member Licensed User Longtime User Aug 24, 2021 #2 Please make sure your B4a SUB names have a least one _ eg a sub with OpenModal() as the name should be written as Open_Modal() so that when you compile in release mode it would work very well...
Please make sure your B4a SUB names have a least one _ eg a sub with OpenModal() as the name should be written as Open_Modal() so that when you compile in release mode it would work very well...
FrostCodes Active Member Licensed User Longtime User Aug 24, 2021 #3 Also if you have any issues like how to upload files with the Libary without using okHttp let me know. It is quite easy if you have some js knowledge especially. PLEASE NOTE I DO NOT OWN THE LIBRARY SO PLEASE DON'T ASK IF I CAN EXTEND ITS FEATURES!
Also if you have any issues like how to upload files with the Libary without using okHttp let me know. It is quite easy if you have some js knowledge especially. PLEASE NOTE I DO NOT OWN THE LIBRARY SO PLEASE DON'T ASK IF I CAN EXTEND ITS FEATURES!
FrostCodes Active Member Licensed User Longtime User Dec 23, 2023 #4 Added sample for WebViewExtras v2 Check the first post.
aeric Expert Licensed User Longtime User Dec 26, 2023 #5 If my observation is correct, I think what I missed was adding DefaultJavascriptInterface for WebViewExtras2 library to work. Thanks. A coffee for you.
If my observation is correct, I think what I missed was adding DefaultJavascriptInterface for WebViewExtras2 library to work. Thanks. A coffee for you.
FrostCodes Active Member Licensed User Longtime User Dec 26, 2023 #6 Yes, you are right! That was why I said it was a small change that was required. Thanks for the Coffee, I appreciate it.
Yes, you are right! That was why I said it was a small change that was required. Thanks for the Coffee, I appreciate it.