Questions tagged as 'android-webview'

1
answer

WebView on android shows HTML

I'm developing an android app, I use a webservice to pick up news from a website and play pro app. This news comes in HTML and I get a webview and I get the HTML for it, and it works perfectly at the API's level > = 19. I'm using wbConteud...
asked by 16.11.2016 / 17:24
1
answer

open links mo webview without having placed http: // or https: //

I'm creating a browser for android, but I'm having trouble running the url without the need for the protocol on the link, such as open www.google.com and the app automatically puts http: // to stay link and webeview recognize the link. foll...
asked by 30.05.2018 / 05:25
1
answer

Monitor WebView url

Hello! I am doing some tests in my android application and in a certain activity I intend to put a webview. I would like to monitor the url of this webview, so when the user enters a predetermined url (example: www.google.com) the application pe...
asked by 10.10.2017 / 18:03
0
answers

Loadurl in a webview inside a @JavascriptInterface

Because I can not load WebView into html CADCLI using the code below. It does not recognize the Webview MainWeb that was created in MainActivity What settings do I need to make in the code to work? @JavascriptInterface public void action(Strin...
asked by 13.11.2018 / 23:35
0
answers

Android Studio - Upload a new html in response to the string sent from webview with javascript to android

Please, could you help me. I have an HTML page loaded in the webview. When the user clicks a button the action function sends the action string to the android. I need to load another html in the webview using the cadcli (View view) function. I d...
asked by 13.11.2018 / 07:00
0
answers

WebView on Android should save the session with logged in user?

I have an application that only loads a website. The login works normal, but it happens after a few hours the session disappears. I talked to the site owner about increasing the cookie expiration time, he said that he had already done so and tha...
asked by 10.11.2018 / 00:47
0
answers

Is there a way to make a url for internal navigation in a webview?

I'm trying to make a url to be browsable within the app, but for some reason, it's not even opening with the native Android HTML reader, can someone help me sort it out as the app now closes after deploy. This is client activity of the main c...
asked by 30.10.2018 / 19:59
0
answers

Android Webview custom error message

Hello everyone, I added a custom error message from Webview to my app, however the default Android message still appears for a few seconds, how do I resolve it? Here is the code: webview.setWebViewClient(new WebViewClient() {...
asked by 10.10.2018 / 21:40
0
answers

Doubt button back when opening webview browser

Good afternoon I have the following doubt I use a shouldOverrideUrlLoading to detect when certain link is clicked inside my webview for firing in the android browser, is there any way that when opening this link in the browser a back button will...
asked by 13.10.2018 / 21:10
0
answers

Open a link in the android browser (WebView)

In my webview I recently implemented the shouldInterceptRequest method to detect when the " link " link is clicked to open it in the android browser instead of opening internally in the webview until it worked the link is opened in the browser b...
asked by 12.09.2018 / 00:52