--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CAG6Z%2BFfpyT%2BSU_Soa2BkfrgP2_mBQta-mHqhx6oSGzh80hxPpg%40mail.gmail.com.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/CAG6Z%2BFfU8fF38cKw3Swd5EcskZuFEftf2-3Bmi_tJdHw_TmaiA%40mail.gmail.com.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/4e68a752-da22-4ffd-90f0-02fa968a195cn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/9ea214c3-3534-4f45-890e-bb78bd251198n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/c1ae1d24-eba2-43ad-9ed3-d25cad1826c5n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/97d2a061-3d65-4281-92de-0f73073227d5n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/43abfe02-abca-4678-95b9-41cde5ee5a9an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/43abfe02-abca-4678-95b9-41cde5ee5a9an%40googlegroups.com.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/57b31da8-4d32-446e-8635-4d02c3a97b33n%40googlegroups.com.
Task: Get Mobile Contacts
Stay Awake
A1: Delete File [
File: contacts_mobile_nums.txt
Shred Level: 0
Continue Task After Error:On ]
A2: Delete File [
File:
contacts_mobile_names.txt
Shred Level: 0
Continue Task After Error:On ]
A3: Array Clear [
Variable Array:
%Contacts_mobile_nums ]
A4: Array Clear [
Variable Array:
%Contacts_mobile_nums ]
A5: Java Function [
Return: cr
Class Or Object: CONTEXT
Function: getContentResolver
{ContentResolver} () ]
A6: Java Function [
Return: uri
Class Or Object: Uri
Function: parse
{Uri} (String)
Param 1 (String): content://com.android.contacts/data/phones ]
A7: Java Function [
Return: cur
Class Or Object: cr
Function: query
{Cursor} (Uri, String[],
String, String[], String)
Param 1 (Uri): uri
Param 5 (String): upper(display_name)
ASC ]
A8: Java Function [
Class Or Object: cur
Function: moveToFirst
{boolean} ()
Param: 200 ]
<Start loop>
A9: Anchor
A10: Java Function [
Return: type
Class Or Object: cur
Function: getColumnIndex
{int} (String)
Param 1 (String): data2 ]
A11: Java Function [
Return: %type
Class Or Object: cur
Function: getString
{String} (int)
Param 1 (int): type ]
A12: If [ %type ~ 2 ]
A13: Java Function [
Return: dispname
Class Or Object: cur
Function: getColumnIndex
{int}
(String)
Param 1 (String): display_name ]
A14: Java Function [
Return: %name
Class Or Object: cur
Function: getString
{String} (int)
Param 1 (int): dispname ]
A15: Java Function [
Return: phone
Class Or Object: cur
Function: getColumnIndex
{int}
(String)
Param 1 (String): data1 ]
A16: Java Function [
Return: %phone
Class Or Object: cur
Function: getString
{String} (int)
Param 1 (int): phone ]
A17: Write File [
File: contacts_mobile_nums.txt
Text: %phone;
Append: On
Add Newline: On ]
A18: Write File [
File: contacts_mobile_names.txt
Text: %name;
Append: On
Add Newline: On ]
A19: Array Push [
Variable Array: %contact_mobile_nums
Position: 1
Value: %phone ]
A20: Array Push [
Variable Array: %contact_mobile_names
Position: 1
Value: %phone ]
A21: End If
A22: Java Function [
Return: %last
Class Or Object: cur
Function: isLast
{boolean} () ]
A23: Java Function [
Class Or Object: cur
Function: moveToNext
{boolean} () ]
If [ %last ~ false ]
A24: Goto [
Type: Action Label
Label: Start loop ]
If [ %last ~ false ]
A25: Write File [
File:
contacts_mobile_nums.txt
Text:
------------------------
--------------------------
Append: On
Add Newline: On ]
A26: Write File [
File:
contacts_mobile_names.txt
Text: %name;
Append: On
Add Newline: On ]
A27: Flash [
Text: %contact_mobile_names()
Long: On
Continue Task
Immediately: On
Hide On Click: On ]
A28: Flash [
Text:
%contact_mobile_nums()
Long: On
Continue Task
Immediately: On
Hide On Click: On ]
A29: Notify [
Title: Mobilephone
numbers
Text:
%contact_mobile_nums()
Icon:
mw_communication_contact_phone
Number: 0
Priority: 3
LED Rate: 0 ]
A30: Notify [
Title: Mobilephone names
Text:
%contact_mobile_names()
Icon:
mw_communication_contact_phone
Number: 0
Priority: 3
LED Rate: 0 ]
A31: Perform Task [
Name: Send a holiday
greeting
Priority: %priority-1 ]
Then:
A7: Variable Set [
Name: %SentSMS
To: 0
Max Rounding Digits: 3 ]
If [ %SentSMS !Set ]
A8: Array Process [
Variable Array: %Contacts_mobile_nums
Type: Remove Duplicates ]
A9: Array Process [
Variable Array: %Contacts_mobile_nums
Type: Remove Duplicates ]
A10: Array Process [
Variable Array: %Contacts_mobile_nums
Type: Squash ]
A11: For [
Variable: %contact
Items: %Contacts_mobile_nums(1:600) ]
A12: Stop [ ]
If [ %contact ~ --------* ]
A13: Flash [
Text: %contact
Long: On
Continue Task Immediately: On
Hide On Click: On ]
A16: Send SMS [
Number: %contact
Message: %message
Store In Messaging App: On
SIM Card: AT&T
Continue Task After Error:On ]
If [ %contact neq ------------------------*-------------------*/*------------------------
--------------------------* ]
A17: Variable Add [
Name: %SentSMS
Value: 1
Wrap Around: 0 ]
A18: Flash [
Text: Sent %contact a message. That is %SentSMS sent messages
Long: On
Continue Task Immediately: On
Hide On Click: On ]
A19: Wait [
MS: 0
Seconds: 15
Minutes: 0
Hours: 0
Days: 0 ]
A20: End For
A21: Array Clear [
Variable Array: %Contacts_mobile_nums ]
A22: Flash [
Text: Sent %SentSMS text messages
Continue Task Immediately: On
Hide On Click: On ]