Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.drawable.apples);
if (resultCode == RESULT_OK) {
if (requestCode == SELECT_PICTURE) {
Log.i("Image select","Selected Image");
selectedImageUri = data.getData();
selectedImagePath = getPath(selectedImageUri);
System.out.println("Image Path : " + selectedImagePath);
// Toast.makeText(SocialTwitter.this, "Message not posted on " + selectedImagePath, Toast.LENGTH_LONG).show();
img.setImageURI(selectedImageUri);
代替资源我想通过 selectedImageUri 我该怎么做请帮助我谢谢