How to save images from the browser? 

59 views
Skip to first unread message

noia...@gmail.com

unread,
Feb 27, 2022, 3:44:01 AM2/27/22
to DroidScript

How to save images from the browser? 
thank you

function OnStart() {
    lay = app.CreateLayout( "linear", "VCenter,FillXY" );
    web = app.AddWebView(lay, 1,1);
    app.AddLayout( lay );
    web.LoadUrl( "http:///www.google.com" );
   web.SetTouchMode(true)
    web.SetOnTouch(touched)
}

Alan Hendry

unread,
Feb 27, 2022, 11:09:02 AM2/27/22
to DroidScript
HI,
There've been posts that app.ScreenShot (and Android printscreen) doesn't show WebView (or Camera).
If you're trying to save the entire web page you could try web.Capture(filename).
If you want a specific image, you can get the url of the image you may be able to CreateImage and Save
Regards, ah
Reply all
Reply to author
Forward
0 new messages