I would like to start my own SMS editor when user selects “Send message” from contacts application. How do I define intent in manifest file to allow passing contact details to the editor?
Thanks a lot
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are many “contacts applications” for Android, not just one. You declined to indicate which “contacts application” you are referring to.
Some “contacts applications” may use
ACTION_SENDTOwith ansmsto:Urifor sending an SMS. In that case, you can add an<intent-filter>to your manifest watching for anandroid.intent.action.SENDTO<action>and a<data>withschemeofsmsto:. That should trigger your activity to be an option for the user.However, bear in mind that not all “contacts applications” may use this.