webview

How to persist webview cookies between app executions?

夙愿已清 提交于 2020-05-14 05:27:10
问题 It is possible to achieve this currently in Android? I only can find deprecated questions about old methods (CookieSynchManager) which not seems to work for this actually. It is possible to achieve it? can't find anything also on the android developers guide. Thank you 回答1: Having the same problem...I solved reading the doc here: https://developer.android.com/reference/android/webkit/CookieSyncManager For future readers: to force the Cookie sync process you can manually call the flush()

Using flutter webview as home and pressing back button closes Application

佐手、 提交于 2020-05-13 17:40:39
问题 I'm trying to use a webview in flutter as my home page for my application. Everything loads just fine, however hitting the back button doesn't send me to the previous web page in the webview, it just exits the application. import 'package:flutter/material.dart'; import 'package:webview_flutter/webview_flutter.dart'; import 'package:url_launcher/url_launcher.dart'; class _StudentPortalState extends State<StudentPortal>{ _launchURL(url) async { if (await canLaunch(url)) { await launch(url); }

Using flutter webview as home and pressing back button closes Application

你离开我真会死。 提交于 2020-05-13 17:38:09
问题 I'm trying to use a webview in flutter as my home page for my application. Everything loads just fine, however hitting the back button doesn't send me to the previous web page in the webview, it just exits the application. import 'package:flutter/material.dart'; import 'package:webview_flutter/webview_flutter.dart'; import 'package:url_launcher/url_launcher.dart'; class _StudentPortalState extends State<StudentPortal>{ _launchURL(url) async { if (await canLaunch(url)) { await launch(url); }

JavaFX WebView up call from JavaScript doesn't work

萝らか妹 提交于 2020-05-13 06:28:08
问题 I have a JavaFX WebView and want to call the method "hello" of the class "JavaBridge" from "test.html" displayed in the webview. Why doesn't this work? I making sure that the "bridge" object only be added to the window.object when the page has been fully rendered, so that is probably not the problem. I can't see any problem with the HTML either. Here is the HTML code ("test.html"): <html> <head> </head> <body> <a href="#click" onclick="bridge.hello()">call java</a> </body> </html> And here is

JavaFX WebView up call from JavaScript doesn't work

让人想犯罪 __ 提交于 2020-05-13 06:27:25
问题 I have a JavaFX WebView and want to call the method "hello" of the class "JavaBridge" from "test.html" displayed in the webview. Why doesn't this work? I making sure that the "bridge" object only be added to the window.object when the page has been fully rendered, so that is probably not the problem. I can't see any problem with the HTML either. Here is the HTML code ("test.html"): <html> <head> </head> <body> <a href="#click" onclick="bridge.hello()">call java</a> </body> </html> And here is

In my webview upload image button not working but in browser it's working?

时光怂恿深爱的人放手 提交于 2020-05-09 17:25:19
问题 In my webview upload image button not working but on browser it's working good but not in my webview app? My app is in Kotlin not Java. Anybody know how to solve this issue. I just want to upload an image by this button. on browser image: mainactivity.kt package com.little.example import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.os.Handler import android.webkit.WebBackForwardList import android.webkit.WebResourceRequest

landscape view and portrait view of webview in android

夙愿已清 提交于 2020-04-30 07:46:10
问题 im working on an android app and im dealing with a webview inside of my android app. i have two layout mainly the activitymain.xml found in layout folder and another layout named activitymain.xml found in layout-land folder and im loading these two from 1 java file but i need these two to load two different webview one for landscape and one for portrait.my question is is it possible to directly put the url/file path of my webview in xml so that when the user change orientation and the

landscape view and portrait view of webview in android

前提是你 提交于 2020-04-30 07:46:06
问题 im working on an android app and im dealing with a webview inside of my android app. i have two layout mainly the activitymain.xml found in layout folder and another layout named activitymain.xml found in layout-land folder and im loading these two from 1 java file but i need these two to load two different webview one for landscape and one for portrait.my question is is it possible to directly put the url/file path of my webview in xml so that when the user change orientation and the

Android studio display html in webview

北战南征 提交于 2020-04-17 18:59:58
问题 I tried to display html that contains tables and characters, At first Android studio didnt get the chars ("The entity ... was referenced, but not declared" error), so I replaced the html entity with the html code of each char and run the app. Now it just shows me the contents of the tables in text form and without the tables. My Java code: package com.example.alpha3; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.text.Html; import android.text

Android studio display html in webview

懵懂的女人 提交于 2020-04-17 18:59:52
问题 I tried to display html that contains tables and characters, At first Android studio didnt get the chars ("The entity ... was referenced, but not declared" error), so I replaced the html entity with the html code of each char and run the app. Now it just shows me the contents of the tables in text form and without the tables. My Java code: package com.example.alpha3; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.text.Html; import android.text