0
I used the following code to capture a text and share.
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
String texto = "Olá sou um texto compartilhado"
sendIntent.putExtra(Intent.EXTRA_TEXT, texto);
sendIntent.setType("text/plain");
startActivity(sendIntent);
When I first ran it it opened properly the share containing all the applications. When I run it again it goes straight to the application I chose the first time. It’s like I’m saved. But I want it to always open the share to choose from. How to solve this ?
Unfortunately not solved. It still keeps opening the same app instead of opening the sharing options.
– Beto
I will reply with a few more considerations
– Edeson Bizerril