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
Help composing a SMS with Start Activity
Moderator: Martin
Help composing a SMS with Start Activity
- Attachments
-
- flow_Compleanni_anniversari_20140826_084802.xml
- (4.21 KiB) Downloaded 736 times
Re: Help composing a SMS with Start Activity
1) So you are unable to get the contact's name and/or the contact's phone number from the calendar?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
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.
Re: Help composing a SMS with Start Activity
Thanks for your help, the real problem is exactly n. 3.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.
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..
Re: Help composing a SMS with Start Activity
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