This Android project illustrates how to query the Contacts database for a device. Once the contact information is read, we shall use the methods discussed in https://github.com/guidrymwg/WriteSDCard/ to write it to a file in external storage that can be copied off to a computer.
The projects in these repositories correspond to individual lessons in the free online android programming course at http://eagle.phys.utk.edu/guidry/android/
This project assumes the Gradle build system in Android Studio. It was targeted at Android 6.0 (API 23) but should be compatible with API 15 and beyond. You will need
- Android Studio (Installing Android Studio)
- An Android phone or tablet, or an Android phone or tablet emulator launched from Android Studio
First download this project using the Clone or Download button, either by importing into Android Studio using GitHub version control, or by downloading and unpacking a .zip file. Full instructions for both may be found by going to http://eagle.phys.utk.edu/guidry/android/ and selecting Resources > Packages for All Projects from the menu.
A complete description of this project, including steps to build it from scratch, may be found by going to http://eagle.phys.utk.edu/guidry/android/ and selecting Read Your Contacts from the menu.