469,142 Members | 1,097 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,142 developers. It's quick & easy.

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?
3 Weeks Ago #1
1 2754
dev7060
489 Expert 256MB
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.‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎
3 Weeks Ago #2

Post your reply

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

Similar topics

5 posts views Thread by siliconmike | last post: by
2 posts views Thread by David P. Donahue | last post: by
11 posts views Thread by moondaddy | last post: by
1 post views Thread by Jay Banks | last post: by
1 post views Thread by CARIGAR | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.