How get permission for camera in android.(Specifically Marshmallow)

Hey I am designing an app in android studio. In which i require permission of camera. I have included <uses-permission android:name=”android.permission.CAMERA” /> in the the AndroidManifest.xml file. It is working properly in all versions of android except Marshmallow. How do I get camera permission by default? If not possible how do I ask it from … Read more

method called after release() exception unable to resume with android camera

While developing a camera app I’ve encountered an exception that only happened when I switch to other app (onPause() for my app). 01-15 17:22:15.017: E/AndroidRuntime(14336): FATAL EXCEPTION: main 01-15 17:22:15.017: E/AndroidRuntime(14336): java.lang.RuntimeException: Method called after release() 01-15 17:22:15.017: E/AndroidRuntime(14336): at android.hardware.Camera.setPreviewDisplay(Native Method) 01-15 17:22:15.017: E/AndroidRuntime(14336): at android.hardware.Camera.setPreviewDisplay(Camera.java:357) 01-15 17:22:15.017: E/AndroidRuntime(14336): at com.sora.cbir.yuki.image.leaf.CameraPreview.surfaceCreated(CameraPreview.java:32) 01-15 17:22:15.017: E/AndroidRuntime(14336): … Read more

Is there a way to ask user for Camera access after they have already denied it on iOS?

I am using this code, but unfortunately it doesn’t work. After a user has denied camera access, I want to ask them for permission to use the camera again the next time they try to load it (in this case it’s a barcode scanner using the camera view). I always get AVAuthorizationStatusDenied and then granted … Read more

Android Camera Intent: how to get full sized photo?

I am using intent to launch camera: Intent cameraIntent = new Intent( android.provider.MediaStore.ACTION_IMAGE_CAPTURE); getParent().startActivityForResult(cameraIntent, CAMERA_PIC_REQUEST); and using: Bitmap thumbnail = (Bitmap) data.getExtras().get(“data”); photoImage.setImageBitmap(thumbnail); photoImage.setVisibility(View.VISIBLE); But it is only a thumbnail, how do I get the full bitmap? I know I can use my own Activity and use: Camera.PictureCallback() But is there anyway to do it … Read more

iPad remembering camera permissions after delete—how to clear?

I’m trying to recreate the condition where the following code returns AVAuthorizationStatusNotDetermined: AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; However, the iPad appears to remember camera permissions even after the app is deleted and reinstalled, and so either Authorized or NotAuthorized is returned every time. Any idea how to reset the permissions so that NotDetermined is returned? … Read more

Single intent to let user take picture OR pick image from gallery in Android

I’m developing an app for Android 2.1 upwards. I want to enable my users to select a profile picture within my app (I’m not using the contacts framework). The ideal solution would be to fire an intent that enables the user to select an image from the gallery, but if an appropriate image is not … Read more