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
在“应用程序-开发”中设置可调试模式,如果您处于USB模式,则android将不允许您使用应用程序。
You could try to use EXTRA_OUTPUT
like explained here . There you maybe can change the save directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.