1. Are you ready for the Galaxy S20? Here is everything we know so far!

Capturing HTML5 content in a WebView

Discussion in 'Android Development' started by Sal C, Nov 15, 2019.

  1. Sal C

    Sal C Lurker
    Thread Starter

    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
     


  2. Sal C

    Sal C Lurker
    Thread Starter

    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
     
Loading...
Similar Threads - Capturing HTML5 content
  1. Air Planet
    Replies:
    1
    Views:
    550
  2. Shanec2694
    Replies:
    1
    Views:
    234
  3. MoodyBlues
    Replies:
    18
    Views:
    1,432
  4. dadiohipster
    Replies:
    5
    Views:
    8,822
  5. JuliaZ
    Replies:
    0
    Views:
    484
  6. PitCarver
    Replies:
    5
    Views:
    471
  7. mpt1123
    Replies:
    1
    Views:
    316
  8. michael_scoffield
    Replies:
    0
    Views:
    451
  9. mohd1989
    Replies:
    2
    Views:
    3,400
  10. Atif Mukhtiar
    Replies:
    4
    Views:
    574

Share This Page

Loading...