Commit 7b0d443d authored by Lucas NAURY's avatar Lucas NAURY

Change intent application select

parent 1f7cb7b3
......@@ -61,6 +61,7 @@ public class DetailScreen extends AppCompatActivity {
Uri uri = Uri.parse("smsto:" + annonce.getNumeroTelephone());
Intent smsIntent = new Intent(Intent.ACTION_SENDTO, uri);
smsIntent.putExtra("sms_body", "Bonjour,\nJe suis intéressé par votre annonce \""+ annonce.getTitre()+"\", n'hésitez pas à me recontacter. \n\n Merci");
startActivity(smsIntent);
}
});
......@@ -72,8 +73,8 @@ public class DetailScreen extends AppCompatActivity {
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts(
"mailto", annonce.getEmail(), null));
emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Réponse à l'annonce - " + annonce.getTitre());
// emailIntent.putExtra(Intent.EXTRA_TEXT, "Body");
startActivity(Intent.createChooser(emailIntent, "Envoi d'email"));
startActivity(emailIntent);
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment