Android MediaStore insertVideo
问题 So our app has the option to take either a picture or a video. If the user takes a picture, we can use the MediaStore.Images.Media.insertImage function to add the new image (via a filepath) to the phone's gallery and generate a content:// style URI. Is there a similar process for a captured video, given that we only have it's filepath? 回答1: Here is an easy 'single file based solution': Whenever you add a file, let MediaStore Content Provider knows about it using sendBroadcast(new Intent