• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Capturing HTML5 content in a WebView

Sal C

Lurker
Greetings,
all the standard techniques for webview screenshot don't work when HTML5 has been rendered. It simply yields a blank page. Render plain HTML and it all works. Documentation for webview doesn't even mention HTML5 or HTML5 canvas, so I'm at a loss for where to look for assistance in this matter.


Thanks
--Sal
 
Greetings,
all the standard techniques for webview screenshot don't work when HTML5 has been rendered. It simply yields a blank page. Render plain HTML and it all works. Documentation for webview doesn't even mention HTML5 or HTML5 canvas, so I'm at a loss for where to look for assistance in this matter.


Thanks
--Sal

Could not find a native API to snapshot the HTML5, so I solved this issue by using javascript's toDataURL() which converts a canvas to an image.

--Sal
 
Back
Top Bottom