protected void onActivityResult(int requestCode, int resultCode, Intent imageReturnedIntent) {  
    super.onActivityResult(requestCode, resultCode, imageReturnedIntent);  
 
    switch(requestCode) {  
    case REQ_CODE_PICK_IMAGE: 
        if(resultCode == RESULT_OK){   
            Uri selectedImage = imageReturnedIntent.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 filePath = cursor.getString(columnIndex); 
            cursor.close(); 
 
 
            Bitmap yourSelectedImage = BitmapFactory.decodeFile(filePath); 
        } 
    } 
}
阿里云国内75折 回扣 微信号:monov8
阿里云国际,腾讯云国际,低至75折。AWS 93折 免费开户实名账号 代冲值 优惠多多 微信号:monov8 飞机:@monov6