July 2015
Beginner to intermediate
600 pages
18h 59m
English
Instead of sending a crime report, an angry user may prefer a phone confrontation with the suspect. Add a new button that calls the named suspect.
You will need the phone number out of the contacts database. This will require you to query another table in the ContactsContract database called CommonDataKinds.Phone. Check out the documentation for ContactsContract and ContactsContract.CommonDataKinds.Phone for more information on how to query for this information.
A couple of tips: to query for additional data, you can use the android.permission.READ_CONTACTS permission.
With that permission in hand, you can read the ContactsContract.Contacts._ID to get a contact ID on your original query. You can ...
Read now
Unlock full access