Android Camera - SD card unavailable
-
28-10-2019 - |
문제
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.
제휴하지 않습니다 StackOverflow