Autosave telephone number to contact

Post your questions and help other users.

Moderator: Martin

Post Reply
mhermanus.za
Posts: 6
Joined: 20 Dec 2013 12:41

Autosave telephone number to contact

Post by mhermanus.za » 20 Dec 2013 12:47

Hi,

I'm new to the whole automagic game, I'm looking for a flow that saves the telephone number of a incoming sms with specific text to a contact.
I got the incoming part right just don't know how to do the save number to contact part, should I use a script but then how do I do it.

Thanks

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Autosave telephone number to contact

Post by Martin » 20 Dec 2013 14:12

Hi,

There is no built-in action to modify a contact yet.
What kind of data would you like to add to the contact? Does the contact already exist or do you also want to create a new contact?

Regards,
Martin

TML
Posts: 8
Joined: 09 Jan 2014 12:54

Re: Autosave telephone number to contact

Post by TML » 28 Jan 2014 12:43

Hi,

i want to do the same.
I want to create, edit and erase contacts in the Phonebook.

I tried to use "Start Activity" but i'm not familiar with android intends.

Can you please help me?

Best regards,
Tim

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Autosave telephone number to contact

Post by Martin » 28 Jan 2014 19:55

Hi,

You could start the activity to create a new contact. You will still have to press at least the save/done button manually.

Start Activity
Action: android.intent.action.INSERT
Data URI: content://com.android.contacts/contacts
Extras:
putString("name", "test");
putString("phone", "1234");
putString("email", "a@b.com");


Editing and deleting is difficult since you would have to search the contact first which is not possible with Automagic yet.
You can edit a contact you know in advance by using Start Activity, set action to android.intent.action.EDIT and select the contact in the Data URI-field ([...]-button, Contact).

Regards,
Martin

Post Reply