Choose a contact

26 views
Skip to first unread message

Prime

unread,
Dec 8, 2018, 12:08:33 PM12/8/18
to Tasker
Hello, I have launched the contacts app in Select a Contact mode via the Launch App action. When I select the contact, the Contact apps return the contact details. But how do I access that back in Tasker?
I want the user to select a contact and then type the message. When the user clicks send, then message is sent to the contact.
I have got everything working except selecting the contact. Please help.
Thank you!

Duck Redbeard

unread,
Dec 8, 2018, 1:27:37 PM12/8/18
to Tasker
Is your end goal for Tasker to send an SMS message to one of your contacts?

Rich D

unread,
Dec 8, 2018, 5:19:17 PM12/8/18
to Tasker Google Groups Post


I want the user to select a contact and then type the message. When the user clicks send, then message is sent to the contact.
I have got everything working except selecting the contact. Please help.
Thank you!



It should be possible but might not be worth the effort. After you  select a contact and there contact information is shown there is a option to send a text message to that contact without using tasker. Would that work??

However to do this with tasker I think the only way would be to use the autoinput plug in and capture the screen contents then parse though that data to get the contact name.  

Robert Ryan

unread,
Dec 8, 2018, 5:30:53 PM12/8/18
to tas...@googlegroups.com
On December 8, 2018 10:08:39 AM Prime <somes...@gmail.com> wrote:

Hello, I have launched the contacts app in Select a Contact mode via the Launch App action. When I select the contact, the Contact apps return the contact details. But how do I access that back in Tasker?

You could try the AutoContacts plug-in. It's by the same developer as Tasker. 

Prime

unread,
Dec 9, 2018, 4:07:16 PM12/9/18
to Tasker
I'm very well aware of the plugins. But that would make my client need to download/buy the plugin as well.
I'd like a native way. Also is there any Java code anybody can present?

Duck Redbeard

unread,
Dec 9, 2018, 4:30:08 PM12/9/18
to Tasker
We could offer you better advice and guidance of you shared what the end goal is.

What exactly are you trying to accomplish?

Rich D

unread,
Dec 9, 2018, 5:02:28 PM12/9/18
to Tasker Google Groups Post




We could offer you better advice and guidance of you shared what the end goal is.

What exactly are you trying to accomplish?

+1...


I have a few java function tasks that deal with contacts. 

Please give a overview of exactly how you want the flow of your project to work. 

As I stated before if you are just going to open the contact list for the user to scroll through then after selecting the contact they are only one more click away from sending that contact a text message. 

I have a task that will take voice input then open the android contact search with the name spoken as the search query. so you would say "open my contact bob" and the contact search page will open with all contacts containing "bob".


Prime

unread,
Dec 10, 2018, 5:51:10 AM12/10/18
to Tasker
Ok here's what I want to do:
When the user clicks a button in my app, a dialogue comes up which asks for the contact number.
The user ofcourse, won't be remembering all the numbers hence
"I have to provide a provision through which the user can select the contact".

Prime

unread,
Dec 10, 2018, 5:54:12 AM12/10/18
to Tasker
Once the contact is selected. The user can continue to send message just with one click there onwards.

I can achieve everything except for being able to select the desired contact.

Rich D

unread,
Dec 10, 2018, 6:45:58 AM12/10/18
to Tasker Google Groups Post
Not sure if this approach would work for your app because it would take an explanation to the user on how to select the correct number. 

The Usual hurtle  to cross here is most contacts have several numbers.  So my approach would be. 

Before opening the contacts app you would start a profile that monitors the clipboard contents for any changes in the clipboard.  Then start the contacts app and have the user long press the number they desire from the contact information and copy it to the clipboard.  You will now have the desired number available to Tasker.  

Let me know if that will work for you. 
 

Prime

unread,
Dec 10, 2018, 8:47:33 AM12/10/18
to Tasker
Thats my current work around Rich :D

The reason for me asking this question is because I have managed to open the Contact app in "Select A Contact" mode. And when the required contact is selected, tasker is unable to accept the returned data.
Maybe its the contact app's property and I think I must check how the data returned is captured by other apps.

Rich D

unread,
Dec 10, 2018, 9:35:25 AM12/10/18
to Tasker Google Groups Post
Are you saying the data copied to the clipboard doesn't enter the clipboard?

once it is copied into the clipboard Tasker can access it through %CLIP 

Prime

unread,
Dec 10, 2018, 10:58:16 AM12/10/18
to Tasker
Oh no, I mean to say that the Clipboard method you suggested is what I'm using currently and it works fine.
Let me post a screen recording of what I want to achieve.

Rich D

unread,
Dec 10, 2018, 11:59:40 AM12/10/18
to Tasker Google Groups Post
Ahhhh.. ok.  I guess I'm just lost at exactly how you're trying to get the data and get it back into Tasker .. perhaps I'm not understanding the select contact mode. A video would probably be helpful..  

On Mon, Dec 10, 2018, 10:58 AM Prime <somes...@gmail.com wrote:
Oh no, I mean to say that the Clipboard method you suggested is what I'm using currently and it works fine.
Let me post a screen recording of what I want to achieve.

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages