Skip to content

Instantly share code, notes, and snippets.

@riverfor
Created January 30, 2020 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riverfor/09b517ddf4d5d3d426c807ae31c73d65 to your computer and use it in GitHub Desktop.
Save riverfor/09b517ddf4d5d3d426c807ae31c73d65 to your computer and use it in GitHub Desktop.
import time
from androidhelper import Android
droid = Android()
ccount = droid.contactsGetCount().result
print("contacts' number:"+str(ccount))
cids = droid.contactsGetIds().result
print("contacts' list:"+str(cids))
contact = droid.contactsGetById(cids[0]).result
print("contact:"+str(contact))
cattrs = droid.contactsGetAttributes().result
print("contact's attributes:"+str(cattrs))
contact = droid.pickContact().result
print("Pick contract:"+str(contact))
cdetail = droid.queryContent(contact["data"]).result
print("contact detail:"+str(cdetail))
contact = droid.pickPhone().result
print("Pick phone:"+str(contact))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment