Android--从相册中选取照片并返回结果

启动系统相册去选择图片

 //从相册中选取的方法
    private void selectPhoto(){
        Intent intent = new Intent(Intent.ACTION_PICK);
        intent.setType("image/*");  //相片类型
        startActivityForResult(intent,SELECT_PHOTO);
    }

得到我们选择好的图片后,我们同样需要重写onActivityResult()方法

如何选取在上一篇中提到了。

2015-10-24

原文地址:https://www.cnblogs.com/819158327fan/p/4906345.html