문제

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

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top