Help composing a SMS with Start Activity

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
nicsergio
Posts: 15
Joined: 19 Aug 2014 07:58

Help composing a SMS with Start Activity

Post by nicsergio » 26 Aug 2014 07:00

Hello everyone

I created a flow which generates a notification in the status bar as a result of events related to the calendar of birthdays of contacts.
In the notification, I added two actions:
- the first is to launch the application of the calendar (and thus far no problem)
- the second is the ability to go directly to the composition of SMS with a predefined text (OK) and addressed to the contact on the calendar event

I tried using the action Start Activity, but is there a way to assign the number as I would like?

thanks to all
Attachments
flow_Compleanni_anniversari_20140826_084802.xml
(4.21 KiB) Downloaded 736 times

User avatar
Pendrokar
Posts: 26
Joined: 31 Dec 2013 10:22
Location: Riga, Latvia

Re: Help composing a SMS with Start Activity

Post by Pendrokar » 29 Aug 2014 19:22

nicsergio wrote: - the second is the ability to go directly to the composition of SMS with a predefined text (OK) and addressed to the contact on the calendar event
1) So you are unable to get the contact's name and/or the contact's phone number from the calendar?
2) Do you have a separate field for the contact's name in the calendar event?
3) Or is the real problem that once you have the contact's name, you are unable to get that contact's phone number.

User avatar
nicsergio
Posts: 15
Joined: 19 Aug 2014 07:58

Re: Help composing a SMS with Start Activity

Post by nicsergio » 30 Aug 2014 15:07

Pendrokar wrote: ...
3) Or is the real problem that once you have the contact's name, you are unable to get that contact's phone number.
Thanks for your help, the real problem is exactly n. 3.
The Google calendar - contacts events automatically sets the title of the event (in Italian, for example, "Luca - Compleanno") so I can easily extract from the variable event_title the name of the contact.

Once I got the contact's name, I have two problems:
1) I have to get the phone number corresponding to the contac's name
2) I have to fill in the field "DATA URI" with the number, but it seems that this field does not support variables

I do not know how to proceed.. :cry:

User avatar
nicsergio
Posts: 15
Joined: 19 Aug 2014 07:58

Re: Help composing a SMS with Start Activity

Post by nicsergio » 14 Sep 2014 18:09

If can help someone, I share the definitive flow: I solved with a query :)
Attachments
flow_Compleanni_anniversari_20140914_190528.xml
(5.75 KiB) Downloaded 763 times

Post Reply