Tag Archives: Contacts

Using Content Resolver to List Contacts – Android

By | October 31, 2018

Here is a simple example to list contacts in android using the Content Resolver. Note : You need to have two things before accessing contacts. 1. Contacts Permission in the Android Manifest 2. Ask Runtime permission from the user Code Here is our MainActivity that lists the contacts. MainActivity.java Adapter Class Below is the adapter… Read More »

How to delete a contact in android?

By | June 23, 2012

Hello all previously I have shown how to list all contacts in your phone and in another post I showed how to programatically create a contact in android. In today’s tutorial I will show you how to delete a contact in android programatically. This simple code does that.

How to add a new contact programmatically in android?

By | June 18, 2012

We all know how to add a new contact to our android devices without programming right. OK that’s a normal man’s use. But what from a programmer’s view. This is the sample java code that helps you to add contact programatically. After running this programs please switch to contacts application on your device to see… Read More »

Get All Details from Contacts in ANDROID.

By | June 13, 2011

Hi all.. In today’s post I will show you how to get all information from the ANDROID Contacts programatically. Just copy and paste this code to your mail java file and check the Logcat for output. Note : Make sure you add this permission to the AndroidManifest File. Download the complete android java source code… Read More »