Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何使用geckoview呈现html?_Android_Html_Rendering_Geckoview - Fatal编程技术网

Android 如何使用geckoview呈现html?

Android 如何使用geckoview呈现html?,android,html,rendering,geckoview,Android,Html,Rendering,Geckoview,我想先从一个网站下载一个html文件,然后用geckoview渲染引擎编辑该网站并打印该html 我知道如何获取html并解析它,但我不知道如何使用renderengine呈现它 Geckoview只使用网站的url 我不想使用webview,因为我认为制作自己的web浏览器应用程序不是件好事 GeckoSession geckoSession = ...;// here you start session in your GeckoView geckoSession.loadString(yo

我想先从一个网站下载一个html文件,然后用geckoview渲染引擎编辑该网站并打印该html

我知道如何获取html并解析它,但我不知道如何使用renderengine呈现它

Geckoview只使用网站的url


我不想使用webview,因为我认为制作自己的web浏览器应用程序不是件好事

GeckoSession geckoSession = ...;// here you start session in your GeckoView
geckoSession.loadString(yourHTMLString, "text/html");

GeckoSession
has方法:

GeckoSession geckoSession = ...;// here you start session in your GeckoView
geckoSession.loadString(yourHTMLString, "text/html");

geckoSession.loadString(“我的第一个标题我的第一段.

”,“text/html”)
显示空白页面。太棒了
geckoSession.loadString(“我的第一个标题我的第一段。

”,“text/html”)
显示空白页面。太棒了geckoSession.loadData(“我的第一个标题。我的第一段。”.getBytes(StandardCharsets.UTF_8),“text/html”)

geckoSession.loadData(“我的第一个标题。我的第一段。”.getBytes(StandardCharsets.UTF_8),“text/html”)

请编辑您的帖子,让人们知道您面临的问题在哪里?请编辑您的帖子,让人们知道您面临的问题在哪里?如果您有问题,可以使用gecko@Vladyslav?@gumuruh打开flash内容吗?问个问题,don;don’不要试着在评论中提问。如果你有问题,可以使用gecko@Vladyslav?@gumuruh打开flash内容——问个问题,don;不要试着在评论中问它