Created
January 30, 2020 08:45
-
-
Save riverfor/09b517ddf4d5d3d426c807ae31c73d65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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