I have a question. How can I share all items in an array using Intent to be shared in the Java language for Android? Because I have many items in the Array, in the example below I only put 2, but there are dozens.
Here's my code:
String[] pe_Contra = {
"Adalberto Cavalcanti",
"Augusto Coutinho",
};
String[] pe_Contra_partido = {
"PTB",
"SD",
};
String[] pe_Contra_ComoVotou = {
"Contra a Denúncia.",
"Contra a Denúncia.",
};
botaoCompartilhar.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, pe_Contra, pe_Contra_partido, pe_Contra_ComoVotou);
sendIntent.setType("text/plain");
startActivity(sendIntent);
}
});
Thank you so much!!!