2

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

coffeetime
  • 237
  • 1
  • 4
  • 9

2 Answers2

0

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

Mal
  • 373
  • 4
  • 15
0

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

Community
  • 1
  • 1
rekire
  • 47,260
  • 30
  • 167
  • 264