Hi All,
I have created an app in which the user can take pictures on the Tablet and then save these to SharePoint.
The user presses buttons, which determines the visibility of galleries, and then once that gallery becomes visible, the user can take photos.
The issue I come across is that either when the galleries open, or after I have taken a picture and navigate to another gallery, I get the same error message in the Camera of the PowerApp saying:
'The Camera could not be started because it is in use by another app. Close any other apps and browser tabs that could be using the camera and try again. If the issue persists, restart the device'.
However, I have found a way around this error message. If I click for example Button1 to open Gallery1, I will receive this error message. But if I Click Button2 to open Gallery2, and then instantly click Button1 to open Gallery1, I do not receive the error message and the camera works fine. So its almost like tricking the app. However for the user this is very annoying to do, so I was hoping I could somehow build in some code that would do this for them, so the code quickly opens for example Gallery1, then instantly closes it and opens up the Gallery we actually want.
I use the code below on each of my Camera functions within the galleries, so I don't think it is an issue with this:
If(
Var_Gallery_Extruder_Side_Before_Clean,
0,
-1
)
Any help is much appreciated, I know its a wierd one.

Report
All responses (
Answers (