我正在使用Bitmaps:
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
startActivityForResult(intent, REQUEST_CODE_BACKGROUND);
如何打开Media Picker以从特定目录中获取位图?
答案 0 :(得分:0)
希望这可以帮到你:
Bitmap bmp = BitmapFactory.decodeFile(Environment.getExternalStorageDirectory() + "/yourFolder/yourImg.jpg");