Fix Power Apps Camera Control Cannot Start on Android
Question details
The user needs to resolve an issue where the camera control in a Power Apps canvas app fails to initialize after returning to a previous screen on an Android device.

- Product
- Microsoft Power Apps
- Device & OS
- Android
- Scenario
- Using a canvas app with camera controls on an Android mobile device.
- Observed behavior
- The camera control works initially, but after navigating away and returning to the screen, it displays an error stating the camera cannot start because it is being used by another app.
Ensure your Android operating system and the Microsoft Power Apps mobile application are both fully updated, as hardware resource bugs are frequently patched in newer releases.
Reset the Camera Control on Screen Navigation
Force the camera resource to be released and re-acquired by dynamically turning the camera control off and back on during screen navigation.
Android devices often lock hardware resources like the camera to a specific screen instance. If the resource is not explicitly released when navigating away, returning to the screen will cause a conflict.
Navigate to make.powerapps.com, locate your canvas app, and click 'Edit' to open it in Power Apps Studio.
Select the screen containing the camera control. In the property dropdown, select 'OnHidden' and add a context variable to disable the camera, for example: UpdateContext({showCamera: false}).
Select the camera control itself, go to its 'Visible' property, and set it to the variable you created (e.g., showCamera). Alternatively, apply this variable to the 'Camera' property to dynamically switch it off.
Select the screen again, choose the 'OnVisible' property, and set the variable to true using: UpdateContext({showCamera: true}). This forces the camera to initialize freshly every time the screen is loaded.

Consult the Microsoft Power Apps Community
Since this involves specialized mobile hardware behavior, escalating the issue to Power Apps specialists can provide workarounds specific to your device model.
Looking for a Free and Lightweight Office Alternative?
While resolving complex Microsoft Power Apps hardware conflicts, you might also be looking for a highly efficient, cost-effective solution for your daily document and spreadsheet tasks. WPS Office provides a powerful, free alternative to Microsoft Office.

Frequently Asked Questions
Why does the Power Apps camera work in the browser but fail on Android?
Web browsers and mobile operating systems handle hardware resources differently. Browsers generally manage the camera feed virtually, whereas Android apps request direct access to the camera hardware. If the Power Apps mobile app does not release the hardware lock when changing screens, Android prevents it from accessing the camera again.
How do I check camera permissions for Power Apps on an Android device?
Open your Android Settings, navigate to 'Apps' or 'App Management', find 'Power Apps', and tap on 'Permissions'. Ensure that the Camera permission is set to 'Allow only while using the app'.
Can I use the barcode scanner control instead of the camera control?
Yes. If your primary goal is to scan QR codes or barcodes, it is highly recommended to use the native 'Barcode reader' control instead of the standard camera control. The barcode reader is optimized for mobile devices and automatically handles opening and closing the camera hardware without resource lock issues.




