B4X FEED Webview - Right click to save image

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Webview - Right click to save image است. این موضوع تا کنون 27 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Webview - Right click to save image
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
27
پسندها
0
آخرین ارسال توسط PracticalSoft
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...



 

عقب
بالا