webview

  1. peacemaker

    B4A Class ImageInternetChooser: pick image icon up from Internet directly

    End-users of some apps may need to choose small icons to save it into app's database. But there was no tool to choose a needed icon in 2-3 taps, but the Internet is always under finger. It seems, now it's possible. No fully free services with API for image searching, with good big database...
  2. Mashiane

    Android Question How safe are webview based apps?

    Ola Just got referred to this.. https://pentestlab.blog/2017/02/12/android-webview-vulnerabilities/ and https://www.checkmarx.com/2017/12/07/javascript-attacks-webviews/ So how safe are we in following this approach in developing apps? Ta!
  3. Martin Larsen

    Android Question Pre-loading a webview

    I would like to speed up the loading of a webview that almost always (like in 90% of the times) will be loaded by the user. So it makes sense to pre-load the content upfront, for example in the main activity. One feasible way would be to load the URL in the main activity or starter service and...
  4. Martin Larsen

    Android Question Applying a custom CSS to a Webview

    Is it possible to apply a custom CSS to a webview loaded with an external URL? Reason: To hide certain elements that are not relevant in the webview as opposed to viewed in a regular browser.
  5. F

    Android Question Enabling button when user scrolls down webview until the bottom [Solved]

    Hello, I have a long disclaimer displayed by a webview. I want the "I Agree" button enabled only after the user scrolls down until the end of the disclaimer. I tried to find an event that can be triggered by the user reaching the bottom of the document and I found onOverScrolled but I don't...
  6. Spyrex

    Android Question How to get an element of the actual opend website in webview?

    How can I check if an element in the actual opend website in webview exists or not ? Thank you for every answer :)
  7. Melek

    Spanish Problema con Webview

    Hola, soy nuevo en B4A, alguien me puede ayudar con el control de WebView, en una pagina web que muestro, hay imágenes y videos, que los videos si cargan, pero no funcionan los controles como el de pantalla completa. Saben si hay alguna forma? Ademas los botones no me funcionan, eso lo note en...
  8. R

    Android Question Webview.InitializeAcceptAll

    I am using a webview to load an URL. The code worked fine until I try to load any 'https://' URL and then I get a blank page. I see several threads showing methods of ignoring/disabling the credential check, but nothing for working with a webview directly. The B4J section showed an example of...
  9. B

    Share My Creation Game Puzzle (League of Legends)

    Hello from France, I share with the community my first hybrid application construct with B4A. The main game is embedded in a webview placed in the main activity. And I used Firebase Admob library in a second activity. The main difficulty was to establish the dialogue between Javascript and B4A...
  10. GERSON PINTO

    Android Question How to force WebView to skip images?

    Hello guys! I am using the webviewExtras2 library and b4A 9.02 WebView1.GetSettings.GetLoadsImagesAutomatically=False cause compile error (attached) I found in stackoverflow this code: webView.getSettings().setLoadsImagesAutomatically(false); What is wrong with my code? Any help?
  11. D

    Android Question Copying State Between Webviews

    I am using a bundle to copy state from Webview1 to Webview2. Here is the "paste" code: Dim jo As JavaObject = myWebview jo.RunMethod("restoreState", Array(myBundle)) This code compiles, but does not actually paste the new state into Webview2. Webview2 retains its old state. I presume I need...
  12. GERSON PINTO

    Android Question findAll in webview

    Hello! Attached is a simple project that load a webpage in a webview and using the findAll RunMethod2 search and highlight all words searched. It's ok! Why Log(FindAll(WebView1, word)) always return 0? I need count the number of occurrences the word found.. How I can do this? What is wrong in...
  13. Loibl Johann

    German Webview verlangt immer login beim Drehen

    Was kann ich bitte machen damit sich das Webview nicht immer auslogt wenn ich das Telefon drehe?
  14. Mashiane

    Android Tutorial MySQL data to webview using PHP

    Hi there The purpose of this is to demo how one can add, update, read and display mysql database records into a webview. 1. Setting up development environment For this we have used, Xampp with MySQL, BlueStacks android emulator to install and test our apk, some php with CRUD functions etc...
  15. D

    Android Question Persist Webview through Orientation Change

    This is with reference to: https://www.b4x.com/android/forum/threads/persist-tabstrip-through-orientation-change.104100/#post-652854 How do I use StateManager to preserve a WebView through orientation change. In particular I need to preserve the webview backforward history. I have attached a...
  16. D

    Android Question Copy Webview BackForward History

    I would like to save the backforward history of a webview. Getting the history is trivial with: Dim wve As WebViewExtras Dim backforward As WebBackForwardList backforward = wve.CopyBackForwardList What I would like to do is copy that backforward history to another webview. There does...
  17. Highwinder

    Android Question Need Help: WebView is Caching/Not Updating Web Content

    The time has come for me to beg for help. I have read through the forum and have discovered several posts of people complaining that the WebView is not updating content because it is being cached. However, none of the solutions posted seem to work for me, as either nothing changed or the app...
  18. D

    Android Question Webview Obtaining Final Url After Redirect

    Many banner add networks redirect visitors to another website. In my app I need to create a history manually for various technical reasons. These redirects are ending up in my history. How can I detect the final Url that a page redirects to and then just put that Url in my history. One...
  19. D

    Android Question Indentifying WebView Triggering _PageFinished Event

    My activity has more than one webview. How do I determine which webview triggered the Page Finished event? Sub myWebview_PageFinished(Url As String) Log("myWebview Attributes") Log(Url) 'This is the right url Log(myWebview) 'This is the wrong webview End Sub It looks like the...
  20. I

    Android Question Webview does not load page

    Activity.LoadLayout("Layout1") WebView1.LoadUrl("https://europlusfrontb2b.cangooroodns.com.br/") Sub Activity_Create(FirstTime As Boolean) 'Do not forget to load the layout file created with the visual designer. For example: Activity.LoadLayout("Layout1") Dim https As String...
Top