Question

Hi I'm using this to open up the native android camera application

Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);   
this.startActivityForResult(camera, PHOTO);

When the device is connected to the computer I get "Please insert sd card before using the camera"

If it isn't connected it is fine.

Any ideas?

I figured it out. From the drag down menu you can tell your usb to only charge and that solves the issue

Was it helpful?

Solution

Set debuggable mode in Applications - devlopment, if you are in USB mode, android will not allow you to use apps.

OTHER TIPS

You could try to use EXTRA_OUTPUT like explained here. There you maybe can change the save directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top