Java tutorial
//package com.java2s; import android.content.Intent; import android.provider.Contacts.Intents; import android.provider.ContactsContract.Contacts; public class Main { /** * @brief Get the add tel intent * * @par Sync (or) Async: * This is a Synchronous function. * * @param [IN] telNumber Tel number.\n * * @return * * @author daiping.zhao * @since 1.0.0.0 * @version 1.0.0.0 * @par Prospective Clients: * External Classes */ public static Intent doAddTelContact(String telNumber) { Intent newIntent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); newIntent.putExtra(Intents.Insert.PHONE, telNumber); return newIntent; } }