Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uv-amse-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lucas NAURY
uv-amse-android
Commits
7b0d443d
Commit
7b0d443d
authored
Feb 22, 2024
by
Lucas NAURY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change intent application select
parent
1f7cb7b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
DetailScreen.java
...rc/main/java/com/example/tpleboncoin/ui/DetailScreen.java
+3
-2
No files found.
app/src/main/java/com/example/tpleboncoin/ui/DetailScreen.java
View file @
7b0d443d
...
...
@@ -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
);
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment