1.拍照后制定位置存储
Intent getImageByCamera = new Intent("android.media.action.IMAGE_CAPTURE");
capturePath = Constant.IMGPATH + File.separator + System.currentTimeMillis() + ".jpg";
getImageByCamera.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(new File(capturePath)));
startActivityForResult(getImageByCamera, 1);
2.调用系统播放器
Photo photo = list.get(i);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(photo.path), "video/mp4");
startActivity(intent);
3.调用系统图库显示图片
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" +item.getPath), "image/*");
startActivity(intent);
4.调用系统相册选择图片
//调用相册
//4.0版本之前利用系统相册选择照片调用这个方法就可以,4.0之后调用之后会左边会增加一个抽屉显示最近内容什么的,此时返回的uri并不能直接查询出数据