Please help me please. I have a listview with several images and hence when the user selects an image in the list in the app, this image is assigned to an ID in the case R.id.ivCar
and at the time of passing the reference in the attempt is giving error because can not pass id with reference You have to pass the image. Good how do I do this?
follow the code ..
int resId = R.id.iv_car; // car.getIMAGEMRESOUCEID()
Uri uriToImage = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE +
"://" + getResources().getResourcePackageName(resId));
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, uriToImage);
shareIntent.setType("image/jpeg");
startActivity(Intent.createChooser(shareIntent, getResources().getText(R.string.app_name)));
Help me pfvvvvv ... I've done everything to