0
Guys help me pfv, well it’s like this. I have a listview with several images and then when the user selects an image from the list in the app, this image is assigned to an ID in the case R.id.ivCar
It is time to pass the reference on the index is giving error because it cannot pass id with reference has to pass the image. good how do I do it?
follows 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 have done from Tudoo to