问题从图库上传多个图像

时间:2017-02-16 10:33:58

标签: android android-gallery

我无法上传多张图片。我从厨房成功获得了图像路径。但我无法在android studio中成功获得图像

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   if (requestCode == REQUEST_CODE_PICKER && resultCode == RESULT_OK && data != null) {
      images = data.getParcelableArrayListExtra(ImagePickerActivity.INTENT_EXTRA_SELECTED_IMAGES);
      StringBuilder sb = new StringBuilder();
      for (int i = 0, l = images.size(); i < l; i++) {
        sb.append(images.get(i).getPath() + "\n");
        //  bitmap = BitmapFactory.decodeFile(images);
      }
      tvtest.setText(sb.toString());
      encodedimage=sb.toString();
   }
}

0 个答案:

没有答案