AutoContacts Get Contact URI

Discussion in 'AutoApps' started by tlewis3348, Nov 1, 2018.

  1. tlewis3348

    tlewis3348 New Member

    Joined:
    Dec 2, 2015
    Messages:
    10
    Likes Received:
    0
    I have the following task that is executed to open the contact card for a specified contact.

    A1: Test Phone [ Type:Contact Thumb URI Data:%acnumber Store Result In:%cid ]
    A2: Variable Search Replace [ Variable:%cid Search:/photo Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With: ]
    A3: Send Intent [ Action:android.intent.action.VIEW Cat:None Mime Type: Data:%cid Extra: Extra: Extra: Package: Class: Target:Activity ]

    However, this only works if the contact has a photo associated with it. I would like to be able to get the target for the contact's contact card directly. is this currently possible with AutoContacts? If not, can such a thing be made possible?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Hi there! Sorry for the delay! What happens if the contact doesn't have a photo?
     
  3. tlewis3348

    tlewis3348 New Member

    Joined:
    Dec 2, 2015
    Messages:
    10
    Likes Received:
    0
    If no "Contact Thumb URI" exists for a given contact (i.e. there is no photo associated with the contact), then the "Test Phone" action throws an error saying "no URI found".
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    tlewis3348 likes this.

Share This Page