Camera permission on Android

Asked

Viewed 3,740 times

2

I have the following permission to access the camera and store the Androidmanifest.xml file:

<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

But when installing the app on my Smartphone, camera permission is disabled, I have to enter the app permissions and manually activate for the app to work.

inserir a descrição da imagem aqui

Storage permissions, a question appears when opening the application if the user wants to allow the application to save photos. But the camera doesn’t ask. What should I do for the question to appear for camera permission too ?

  • Have to do the same as was done for storage permission.

1 answer

-1

The camera does not request user permissions. Change this permission on your Androidmanifest:

<uses-feature
    android:name="android.hardware.camera"
    android:required="true" />
  • You didn’t ask permission from the camera doing it this way

  • I had understood that you already wanted the app to be guaranteed permission when installing.

  • Márcio, doing so, the permission of the camera to install the app did not come set as true.

  • Weird. I’ll take a look at it calmly at home later. An app I made recently stated this way.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.