webview

How to Stop Android webView swipeToRefresh loading progressbar?

帅比萌擦擦* 提交于 2021-02-07 09:19:07
问题 Note: This question was already asked here. which did not get any answer so I decided to repost it with my code. I want a webView to refresh the current page when a user pulls down the screen from the top which is working fine. The problem is the loading progress bar isn't stopping after the page has been loaded. Here's the MainActivity.java // Swipe to Refresh SwipeRefreshLayout swipeLayout = (SwipeRefreshLayout)this.findViewById(R.id.swipeToRefresh); swipeLayout.setOnRefreshListener(new

Turn on GPS function webview

坚强是说给别人听的谎言 提交于 2021-02-07 08:13:32
问题 I've got a webView for my website that needs to access the user location, and it does that by pressing a button and displaying the position in a form. I need a way from the webView to ask the user to turn on the gps if it's off when clicking on the button (it has id="locate button" ). How can I do that from Android studio? My code: MainActivity.java public class MainActivity extends AppCompatActivity { private WebView webview; @Override protected void onCreate(Bundle savedInstanceState) {

Turn on GPS function webview

风格不统一 提交于 2021-02-07 08:08:17
问题 I've got a webView for my website that needs to access the user location, and it does that by pressing a button and displaying the position in a form. I need a way from the webView to ask the user to turn on the gps if it's off when clicking on the button (it has id="locate button" ). How can I do that from Android studio? My code: MainActivity.java public class MainActivity extends AppCompatActivity { private WebView webview; @Override protected void onCreate(Bundle savedInstanceState) {

Android Fatal signal 11 (SIGSEGV) in WebViewCoreThre

▼魔方 西西 提交于 2021-02-07 06:27:45
问题 Using a Toshiba AT300SE-101 v4.1.1 (with others tablets it works), and a simple app, the app dies with a error: 06-19 11:02:12.092: A/libc(20030): Fatal signal 11 (SIGSEGV) at 0x00000001 (code=1), thread 20043 (WebViewCoreThre) 06-19 11:02:12.192: I/DEBUG(106): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-19 11:02:12.192: I/DEBUG(106): Build fingerprint: 'TOSHIBA/tostab12AL/tostab12AL:4.1.1/JRO03C/000122808.05:user/release-keys' 06-19 11:02:12.192: I/DEBUG(106): pid:

WebView NullPointerException using JavaFX

狂风中的少年 提交于 2021-02-07 04:28:21
问题 Recently adding a WebView pane to my JavaFX Application. When resizing my program I get this error and the program freezes. java.lang.NullPointerException at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.validate(WCPageBackBufferImpl.java:97) at com.sun.webkit.WebPage.paint(WebPage.java:644) at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:95) at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2067) at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1959) at com.sun

How to have source instead of html in WebView in React Native

本小妞迷上赌 提交于 2021-02-06 13:58:05
问题 Recently, React Native has deprecated html and url props and replaced them with source . <WebView automaticallyAdjustContentInsets={false} contentInset={{top: 0, right: 0, bottom: 0, left: 0}} html={"<style>*{margin:0;padding:0;}canvas{position:absolute;transform:translateZ(0);}</style><canvas></canvas><script>var canvas = document.querySelector('canvas');(" + renderString + ").call(" + contextString + ", canvas);</script>"} opaque={false} underlayColor={'transparent'} style={this.props.style

How to have source instead of html in WebView in React Native

南楼画角 提交于 2021-02-06 13:56:49
问题 Recently, React Native has deprecated html and url props and replaced them with source . <WebView automaticallyAdjustContentInsets={false} contentInset={{top: 0, right: 0, bottom: 0, left: 0}} html={"<style>*{margin:0;padding:0;}canvas{position:absolute;transform:translateZ(0);}</style><canvas></canvas><script>var canvas = document.querySelector('canvas');(" + renderString + ").call(" + contextString + ", canvas);</script>"} opaque={false} underlayColor={'transparent'} style={this.props.style

How to achieve multi-login for webviews in Android?

倾然丶 夕夏残阳落幕 提交于 2021-02-06 12:44:31
问题 I want to make an app that allows users to log-in multiple accounts of same site using different webview. For example, I have 2 WebView. Each WebView will load the same site such as gmail.com. And user can log-in using separate account in separate WebView. But the problem I am facing is that the 2 WebView always log-in to same account . I've googled a lot, and here are some related titles, Facebook MultiLogin in Android Webview Using WebView for multi-page login to website and fetch data

How to achieve multi-login for webviews in Android?

你。 提交于 2021-02-06 12:43:16
问题 I want to make an app that allows users to log-in multiple accounts of same site using different webview. For example, I have 2 WebView. Each WebView will load the same site such as gmail.com. And user can log-in using separate account in separate WebView. But the problem I am facing is that the 2 WebView always log-in to same account . I've googled a lot, and here are some related titles, Facebook MultiLogin in Android Webview Using WebView for multi-page login to website and fetch data

Android webview get sslError SSL_UNTRUSTED but certificate is valid

时光怂恿深爱的人放手 提交于 2021-02-06 10:55:27
问题 I've implemented onReceivedSslError method in my WebViewClient to properly handle invalid https certificate in webview: @Override public void onReceivedSslError(WebView view, final SslErrorHandler handler, SslError error) { final AlertDialog.Builder builder = new AlertDialog.Builder(WebActivity.this); String message = "SSL Certificate error."; switch (error.getPrimaryError()) { case SslError.SSL_UNTRUSTED: message = "The certificate authority is not trusted."; break; case SslError.SSL_EXPIRED