web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Forcing a Gallery to O...
Power Apps
Unanswered

Forcing a Gallery to Open and then instantly close to get the Camera to work

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard