Hello,
This is my first library to get all contacts' name and phone number. A list is returned with contact's name and address, separated by newline.
Needs android.permission.READ_CONTACTS. Add the following line in Manifest file:
AddPermission("android.permission.READ_CONTACTS")
Copy the TGetContacts.jar, TGetContacts.xml in Basic4android's Libraries folder. Example project for Basic4android is attached.
Example:
Dim TC As TGetContacts
Dim ContactList As List
ContactList.Initialize
ContactList.AddAll(TC.GetAllContacts) 'Retrieve all contacts. Each list item is a string of Name and Phonenumber - newline separated.
Tested on Android SDK emulator android version 2.2, and on a real device with android 2.3.
Best regards.
This is my first library to get all contacts' name and phone number. A list is returned with contact's name and address, separated by newline.
Needs android.permission.READ_CONTACTS. Add the following line in Manifest file:
AddPermission("android.permission.READ_CONTACTS")
Copy the TGetContacts.jar, TGetContacts.xml in Basic4android's Libraries folder. Example project for Basic4android is attached.
Example:
Dim TC As TGetContacts
Dim ContactList As List
ContactList.Initialize
ContactList.AddAll(TC.GetAllContacts) 'Retrieve all contacts. Each list item is a string of Name and Phonenumber - newline separated.
Tested on Android SDK emulator android version 2.2, and on a real device with android 2.3.
Best regards.
Attachments
Last edited: