0
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 sharing 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 you need a uri
I don’t know how to do?