1. Download our Official Android App: Forums for Android!

Prevent Android app from opening Fake Camera

Discussion in 'Android Development' started by Pawan Choudhary, Nov 8, 2019.

  1. Pawan Choudhary

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Nov 7, 2019

    Nov 7, 2019
    2
    0
    5
    We have an Android app, that supports clicking pics using Camera only and not gallery. However certain 3rd party apps like Gallery Cam or Fake Camera apps, prevent this from happening by modifying the source of camera control from camera to gallery, so the user is able to choose pic from gallery. This defeats the purpose of the app. Looking for suggestions to prevent the same by prompting the user if the pic is not captured from the camera
     

    Advertisement

  2. codesplice

    codesplice Elite Recognized Moderator
    Moderator
    Rank:
     #14
    Points:
    1,638
    Posts:
    9,101
    Joined:
    Oct 29, 2013

    Oct 29, 2013
    9,101
    10,757
    1,638
    Male
    SysAdmin
    Huntsville, AL
    Non-developer here, but my hunch is that you'd need to build the camera functionality into your app instead of offloading to another camera app. That's the only thing I can think of to prevent the external intent from being intercepted by another app.
     
    Unforgiven likes this.

Share This Page

Loading...