How to get Camera permission is enable in app permissions in android app?
<p>I am working on android app in xamarin plateform. I have enabled the camera functionality for app from app manifest. After running the app user disable the camera from app permissions screen. So how I can get that user has disable this functionality from app permission?</p>

<p>I am trying following code to get it but every time I am getting only "Granted" in result. If user disable the permission then I should get "Denied" in result.</p>

<pre><code> var val = PackageManager.CheckPermission (Android.Manifest.Permission.Camera, PackageName);
</code></pre>

<p><a href="https://i.stack.imgur.com/W3LT6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W3LT6.png" alt="enter image description here"></a></p>