1. Erick Kalugdan

    Android Question Select file (like PDF) then upload via WebView or OkHttpUtils2

    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...
  2. H

    Android Question webview question

    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...
  3. R

    Android Question How to view 'Wunderground' web pages in Webview

    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...
  4. B

    Android Question WebView don't show scriptmsg

    Hi everyone, 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...
  5. R

    Android Question Capture Webview Problem

    Hello!, i'm trying to capture a webview and it doesn't come out complete I do not know what the error is, I attach project
  6. bdunkleysmith

    B4J Question [Solved] Problem with WebView and Integrated B4JPackager11

    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...
  7. Pablo Torres

    iOS Question unsecured calls to specific domains and non-secure pages in WebView at the same time

    Hi Everyone, I know how to make unsecured calls to specific domains using #PlistExtra: <key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><false/> #PlistExtra: <key>NSExceptionDomains</key><dict> 'list the excluded domains (example.com and b4x.com) #PlistExtra...
  8. MitchBu

    Android Question Trying to save picture from WebView.

    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") Out.Close...
  9. K

    Android Question WebView, local html + javascript and the Websocket connection is not working

    Hi All I am trying to make a very simple application that only runs a website in WebView from a local html file in the DirAssets directory. The website contains javascripts that work in my application, except for the Websocket connection options. All scripts from the file work correctly...
  10. letsmoscow

    Android Question Webview with full permissions.

    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.
  11. Javier Alonso

    Android Question Webview onPageFinish event

    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...
  12. saeed10051

    Android Question Query regarding webview

    Dear All i am using webview in an application to download and open an online pdf book. I am using following code, it opens the book in a pdf viewer...
  13. Ahmet KOÇ

    Android Question webview video fullscreen problem

    Video full screen button is not active on webview. anyone who solved this problem?
  14. a6000000

    Android Question [B4A] WebView how to hide Zoom Controls (+) (-) buttons ? setDisplayZoomControls(false)

    in AndroidStudio in WebView, I hide the (+) (-) Zoom Controls UI buttons with : // in AndroidStudio onCreate() : private WebView webView; // .. // hide +- buttons webView.getSettings().setDisplayZoomControls(false); How to hide it in B4A ?
  15. L

    Android Question [SOLVED] Local file with URI fragments in a WebView

    Hi, 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...
  16. Phayao

    Android Question Mouseover effect by javascript not working in webview

    Hello, I could not find a solution in the forum, so i ask here: I load a html file which contains javascript via webview.loadurl. The javascript defines a mouseover or hover effect on <a> tags: Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("Layout")...
  17. Martin Larsen

    iOS Question Webview ignores links with target="_blank"

    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...
  18. H

    Android Question PHP and WebView (XAMPP)

    Hi. I'm trying to display a PHP file from (XAMPP Local server) in a webview but i get nothing to show. Is there something i'm missing? I Should mention that the PHP page utilizes CSS and Javascript. Also, the PHP file is just a table that displays records. Is there a better way to do this...
  19. P

    Android Question Very poor webview performance

    Hi 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 This is...
  20. Martin Larsen

    iOS Question Webview: User agent and cookies

    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 r.RunMethod2("setUserAgentString"...