473,382 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to prevent re-opening a scanned image's URL again after pressing back to return to the app

Simply, after scanning the trigger image with the phone's camera, the URL opens successfully. When I press on the back button to return to the phone's camera, the app reopens the URL again as you see in the attached video.

https://drive.google.com/file/d/1e5zcYL37WWLbkhqGt-XrmU9tYZQk-rx9/view?usp=sharing

Basically, I am keeping calling Application.OpenURL(videoClips[Image.DatabaseIndex].url) every time it hits the Update method. I need some sort of check to only open that when I want. I Maybe reset my image to null or something. Anyone can help me with this code? And how can I clear my image after opening it?
Aug 29 '21 #1
1 3090
dev7060
636 Expert 512MB
Simply, after scanning the trigger image with the phone's camera, the URL opens successfully. When I press on the back button to return to the phone's camera, the app reopens the URL again as you see in the attached video.

https://drive.google.com/file/d/1e5z...ew?usp=sharing

Basically, I am keeping calling Application.OpenURL(videoClips[Image.DatabaseIndex].url) every time it hits the Update method. I need some sort of check to only open that when I want. I Maybe reset my image to null or something. Anyone can help me with this code? And how can I clear my image after opening it?
Show the code.‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎
Aug 30 '21 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: siliconmike | last post by:
Do most browsers retain form fillup memory of previous page ? That is when the user presses back button, the forms on the previous page come up filled. Comments? Thank you, Mike
6
by: Bill | last post by:
If I've got images in a directory, and I define that directory as an application directory (so I have a global.asa in it), what does my global.asa have to look like to prevent linking of images?
1
by: Ed | last post by:
Hi, I have an html page with a div element within a form for dynamically creating textfields. The problem is when I click a link on the page, or the submit button, then click the back button,...
2
by: David P. Donahue | last post by:
Is there a way to specify on each control of a page which button on the page should be "clicked" when the user presses "return" from within that control? It seems like it's always just defaulting...
11
by: moondaddy | last post by:
I have images that I need to prevent the user from doing a right click and selecting "Save Picture As"? How can I do this? -- moondaddy@nospam.com
2
by: Ersin Gençtürk | last post by:
I show errors as popup boxes via alert() but I write this scripts in header of html page.So if there is an error on the server side , in the next postback a popup shows the error via alert , this...
1
by: Jay Banks | last post by:
I know this was recently posted in reference to a textbox, but I'm having a similar problem, and can't keep it from beeping. I'm using a NumericUpDown control instead of a textbox. I've tried...
2
by: jieelee | last post by:
Hi, I am Jieun I am working on e-mail redirecting for preventing email harvesting using iframe. When clicking on email and then click on another link on the page. Then press back button, the...
33
by: Sándor Demeter | last post by:
a textbox has an OnExit procedure that I don't want to run, if I pressed "Cancel command" button (a command button that I want to dedicate to this role). before Cancel command button takes the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.