- Jun 6, 2020
- 11,559
- 4,422
Full-blown browsers enjoy a context menu, activated with a right click of the mouse. Among other tasks, you can select and download images appearing on the page.
Attached below you will find Contextual (.jar and .xml), a library which allows you to download and save images from a webview. Unzip to your Addlibs folder.
Use:
1) Include Contextual in your project. Check Contextual in the libraries tab.
2) Declare some variable as Contextual
3) Declare and add your webview as usual
4) Initialize your Contextual variable. You can use an empty string as the only parameter.
5) Call Contextual's addContextMenu() method, passing your declared webview as the only parameter.
6) At some point, you'll want to load a url in your webview. Nothing much happens in a blank webview.
When you find an image of interest that you wish to download, tap and hold it (aka, long click or long press). The context menu should appear, offering you 3 choices: Save to the pictures gallery, Save to...
Attached below you will find Contextual (.jar and .xml), a library which allows you to download and save images from a webview. Unzip to your Addlibs folder.
Use:
1) Include Contextual in your project. Check Contextual in the libraries tab.
2) Declare some variable as Contextual
3) Declare and add your webview as usual
4) Initialize your Contextual variable. You can use an empty string as the only parameter.
5) Call Contextual's addContextMenu() method, passing your declared webview as the only parameter.
6) At some point, you'll want to load a url in your webview. Nothing much happens in a blank webview.
When you find an image of interest that you wish to download, tap and hold it (aka, long click or long press). The context menu should appear, offering you 3 choices: Save to the pictures gallery, Save to...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید