Which one calls sharing?

Asked

Viewed 359 times

2

I wonder which Intent draws the screen below: inserir a descrição da imagem aqui

1 answer

2


To call the sharing screen, use this code

Intent minhaIntent = new Intent();
minhaIntent.setAction(Intent.ACTION_SEND);
minhaIntent.putExtra(Intent.EXTRA_SUBJECT, "Título da ação (ex.: Compartilhar");
minhaIntent.putExtra(Intent.EXTRA_TEXT, " Sua mensagem a ser compartilhada");
minhaIntent.setType("text/plain");
startActivity(minhaIntent);

Browser other questions tagged

You are not signed in. Login or sign up in order to post.