I realize even I do not have
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
in my `AndroidManifest.xml
String path = Images.Media.insertImage(((Activity)MainView.this.getContext()).getContentResolver(), screenCaptureBitmap, "Title", "Description");
still able to write image file to location /mnt/sdcard/DCIM/Camera. May I know why is it so?
maybe in depend on the content provider
MediaStore, you through it to insert, it’s a RPC invoke. and theMediaStoreprovider in source code:packages/providers/MediaProvider, in it’s manifest define the permission<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />,may be it’s the reason.