I have a web app (written in PHP) which is accessed by a WebView in my B4A app.
I need the user to select a file (like PDF) from his phone and upload it to my web app via form POST as multipart/form-data.
Note that the file is outside my app's assets / internal directories.
I can't seem to...
I have two webviews (webview1, webview2) on the form, one to show the website content and the other one to show the user avatar. I noticed that when I call webview.loadUrl from a button, then the session terminates (and I need to sign in) however if I close the app and reopen, then the session...
I cannot display any webpages from the weather site Wunderground in a webview. The webpage loads but then switches to a solid white screen. I have tried using chrome client as well but no luck. The sites display properly in PC browsers and in other browsers on android. Sample URLs are...
my colleague wrote a webapp with visual studio that allor the users to login to save data on a database and show a confirmation message, and it works correctly via the browser.
I've write an app with B4A that just load this webpage in a webview so i can easily share the apk with...
I have a legacy project in which the main form and a modal form (for displaying a help screen) were designed in Scene Builder. Both contain WebViews. Being first developed under Java 8, I used Launch4j to produce the executable.
However I had to make a minor update and having now moved to Java...
Hi Everyone, I know how to make unsecured calls to specific domains using
'list the excluded domains (example.com and b4x.com)
Here is the code I am trying to use. I never get any file.
WVLetter is the WebView.
Dim WVPic As Bitmap = WVLetter.CaptureBitmap
Dim Out As OutputStream
Out = File.OpenOutput(File.DirDefaultExternal, "TestHTMLPic.png", False)
WVPic.WriteToStream(Out, 100, "PNG")
Hello! How i can use webview as standart browser with all perrmissions?
Need use html5 (camera, geoposition) and file uploading.
It's a possible (SDK 28)?
Any examples with all of this permissions (camera, geo, uploading in one :) ))?
Excuese for my English.
Hi, I am using this wonderful Webreader library from Informatix https://www.b4x.com/android/forum/threads/epubreader-webreader.72560/, but I need to access the onPageFinished event of the underlying Webview. What I want is to use a WAIT FOR sentence to ensure that a page is fully loaded before...
in AndroidStudio in WebView, I hide the (+) (-) Zoom Controls UI buttons with :
// in AndroidStudio onCreate() :
private WebView webView;
// hide +- buttons
How to hide it in B4A ?
showing a remote URL with a URI fragment in a WebView works fine. For example the URL https://www.b4x.com/android/help/views.html#webview_loadurl is shown in a Webview.
Using a local saved html file with framents does not work. Is there any way to show something like...
I could not find a solution in the forum, so i ask here:
Sub Activity_Create(FirstTime As Boolean)
In B4A, a link which in a normal browser opens in a new tab, just opens in the same webview. In other words, it ignores the target="_blank" attribute.
In B4i, the webview instead ignores the link completely. It doesn't open.
Right now my fix is:
Private Sub wv_PageFinished (Success As Boolean...
Also, the PHP file is just a table that displays records. Is there a better way to do this...
I'm loading a local html in a webview, but the webview is extremely slow. I tried adding hardware accelerating to manifest, and everything else found in forum. But none of them worked.
I uploaded my project. if that helps.
Also there's only a webview in my activity. nothing else
Getting and setting the user agent
In B4A I can set get and the user agent using using Reflector:
Dim r As Reflector
r.Target = webview
r.Target = r.RunMethod("getSettings")
' Get user agent
userAgent = r.RunMethod("getUserAgentString")
' Set user agent