Android Question webview and single use page

luke2012

Well-Known Member
Licensed User
Longtime User
Hello everyone, I need to implement a control within a webview and specifically I should make sure that the user can view a certain specific web page contained in the webview only once.

The ideal thing would be to ask the user for confirmation with a yes / no dialog.

So if the user answers no, the page is not displayed (loaded) on the contrary if he answers yes, the page is loaded and displayed, but only once, after which the user can no longer view it (a sort of disposable page , in a sense).

Is it possible to implement a control similar to the intent of a webview on the B4A & B4i side or must it be implemented on the CMS side (in this case it is a page on drupal)?
 

luke2012

Well-Known Member
Licensed User
Longtime User
I'm not sure that I understand. Where exactly is the problem? Does the control need to be part of the displayed website?
Hi Erel and first of all thanks for your appreciated reply.

I try to explain better: the page, which will be displayed within the webview, contains the image of a discount coupon that the user can show to the merchant (who applies the discount) only once.

For reasons of implementation time (very short time for implementation) my colleague and I (who works on the drupal side as a web master) have decided to create a web page that contains the image of the discount coupon and therefore on the B4A & B4i side I implement a web view showing the page with the coupon image.

The user can use (then show) the discount coupon 1 time to the merchant who applies it.

If I had to implement this control in completely native mode within B4A and B4i I would have known how to do it because I am familiar with the development environment, but I would not know how to implement it within a web view.
 
Upvote 0

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Why not download the html page. Parse out the image. That way you can have all of the control that you want.

 
Upvote 0

luke2012

Well-Known Member
Licensed User
Longtime User
First of all, thank you all for the much appreciated suggestions.

So from what I understand, the fastest way to implement is to use the SMM framework (as suggested by @Erel ).

My preliminary questions about this is:

1) So with the SMM I could limit (with a specific control within B4A and B4i) the display of the remote image to 1 time only? The ultimate goal is practically this: Allow the user to view (show) the image 1 time only.

2) Is the SMM framework fully supported within both B4A and B4i? So the code is 100% shared between the two platforms?

3) So from what I understand, with the webview it is not possible to implement this type of control, correct?
 
Last edited:
Upvote 0
Top