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 / Android Devices Defaul...
Power Apps
Answered

Android Devices Defaults to Front Camera

(0) ShareShare
ReportReport
Posted on by 8
When we start our Canvas Power App, having camera control on all the android device opens the front camera rather than the back. The iOS devices are fine. Any help or input will be much appreciated.
Just to let you know, I have tried changing some camera settings on the devices, but no luck.
Categories:
I have the same question (0)
  • Verified answer
    Sunil Kumar Pashikanti Profile Picture
    1,077 Moderator on at
     
    This is a known Android behavior limitation in Power Apps.
    Not a bug in your app.
    No global setting exists to force back camera across all Android devices.
    The best solution is using AvailableDevices or letting users manually switch.
     
    Option 1: Use Add Picture Control Instead of Camera
    The Add Picture control lets users:
    • Choose camera
    • Switch between front/back manually
    • This gives users control instead of forcing default behavior.
     
    Option 2: Use AvailableDevices
    Step 1: Add a Variable on Screen OnVisible
    If(
        "android" in Lower(Host.Platform) &&
        CountRows(
            Filter(
                Camera1.AvailableDevices,
                "back" in Lower(Name) || "rear" in Lower(Name)
            )
        ) > 0,
        
        First(
            Filter(
                Camera1.AvailableDevices,
                "back" in Lower(Name) || "rear" in Lower(Name)
            )
        ).Id,
        
        First(Camera1.AvailableDevices).Id
    )
    Step 2: Set Camera Control Property
    Select your Camera control (Camera1)
    Set the Camera property to:
    If(
        !IsBlank(varRearCamera),
        varRearCamera,
        First(Camera1.AvailableDevices).Id
    )
     
    This may still fail if the Android Devices camera names doesn’t contain “back” or “rear”.
     
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
     
  • Verified answer
    Assisted by AI
    devanshu Profile Picture
    Microsoft Employee on at
    
    If(
        CountRows(
            Filter(Camera1.AvailableDevices, 
                   Lower(Name) Contains "back" || Lower(Name) Contains "rear")
        ) > 0,
        First(
            Filter(Camera1.AvailableDevices, 
                   Lower(Name) Contains "back" || Lower(Name) Contains "rear")
        ).Id,
        First(Camera1.AvailableDevices).Id
    )
    
     
  • RP-25090740-0 Profile Picture
    8 on at
    Thankyou @devanshu and @Sunil Kumar Pashikanti for your replies. It resolved my issue :)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 538 Most Valuable Professional

#2
11manish Profile Picture

11manish 307

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard