I have this drawable :
String nome_foto = itens.get(pos).nome_foto;
int drawableId = getResources().getIdentifier(nome_foto, "drawable", getPackageName());
Drawable drawable = getDrawable(drawableId);
I have this drawable with the photo, how can I use it in the Android
I thought of something like this:
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_STREAM,Aki precisa de um uri );
sendIntent.setType("image/jpg");
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.compartilhar)));
But do you need a uri
that I do not know how to do?