Which intent do you call the share?

2

I would like to know which try calls the screen below:

    
asked by anonymous 07.08.2015 / 02:59

1 answer

2

To call the share 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);
    
07.08.2015 / 03:55