admin 管理员组

文章数量: 1086019

I’m building a custom browser in my Android application and need to take a screenshot of each tab when a web page loads.

Currently, I’m using the following method to capture the screenshot:

public Bitmap tabScreenShot(Context context) {
    WebView webView = new WebView(context);
    return new Screenshot().takeWebView(webView, height, width);
}

本文标签:

Error[2]: Invalid argument supplied for foreach(), File: /www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm, Line: 58
File: /www/wwwroot/roclinux.cn/tmp/route_read.php, Line: 205, include(/www/wwwroot/roclinux.cn/tmp/view_template_quzhiwa_htm_read.htm)
File: /www/wwwroot/roclinux.cn/tmp/index.inc.php, Line: 129, include(/www/wwwroot/roclinux.cn/tmp/route_read.php)
File: /www/wwwroot/roclinux.cn/index.php, Line: 29, include(/www/wwwroot/roclinux.cn/tmp/index.inc.php)