// TODO 打开本地图库
Intent intent = new Intent( Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
Intent intent = new Intent( Intent.ACTION_PICK,
android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
startActivityForResult(intent, LOAD_IMAGE);
if (resultCode == RESULT_OK) {
if(requestCode==LOAD_IMAGE){//打开图库
Uri selectedImage = data.getData();
String[] filePathColumn = { MediaStore.Images.Media.DATA };
Cursor cursor = getContentResolver().query(selectedImage,
filePathColumn, null, null, null);
cursor.moveToFirst();
int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
String picturePath = cursor.getString(columnIndex);
cursor.close();
Intent intent=new Intent(SelectPhotoDialog.this,HonorNewActivity.class);
intent.putExtra("picturePath", picturePath);
setResult(RESULT_OK, intent);
finish();
}