Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6151837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:49:33+00:00 2026-05-23T19:49:33+00:00

I would like to integrate my app with contact manager: More precisely: When I

  • 0

I would like to integrate my app with contact manager:

More precisely:

When I run Contact app in my phone and then I click on any avatar, a Popup (Quick Contact Badge) windows shows up with some application to choose (Contact, Mail, etc) I would like to add my Application in that place.

That is possible ?

I hope to be clear.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:49:34+00:00Added an answer on May 23, 2026 at 7:49 pm

    Hey guy finally I resolved this adding a custom field to ContactProvider and then QuickContactBadge will be link it for you.

    My code, for adding, delete a particular entry, delete all entry added by me.

     private static final String IM_LABEL = "Test protocol";
     private static final String LOG_TAG = "Log"
        /**
     * This method add my account under IM field at default Contact
     * application
     * 
     * Labeled with my custom protocol.
     * 
     * @param contentResolver
     *            content resolver
     * @param uid
     *            User id from android
     * @param account
     *            account name
     */
    public static void updateIMContactField(ContentResolver contentResolver,
            String uid, String account) {
    
        ContentValues contentValues = new ContentValues();
    
        contentValues.put(ContactsContract.Data.RAW_CONTACT_ID,
                Integer.parseInt(uid));
        contentValues.put(ContactsContract.Data.MIMETYPE,
                ContactsContract.CommonDataKinds.Im.CONTENT_ITEM_TYPE);
        contentValues.put(ContactsContract.CommonDataKinds.Im.TYPE,
                ContactsContract.CommonDataKinds.Im.TYPE_CUSTOM);
        contentValues.put(ContactsContract.CommonDataKinds.Im.LABEL, IM_LABEL);
        contentValues.put(ContactsContract.CommonDataKinds.Im.PROTOCOL,
                ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM);
        contentValues.put(ContactsContract.CommonDataKinds.Im.CUSTOM_PROTOCOL,
                IM_LABEL);
    
        contentValues.put(ContactsContract.CommonDataKinds.Im.DATA, account);
    
        ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>();
        ops.add(ContentProviderOperation
                .newInsert(ContactsContract.Data.CONTENT_URI)
                .withValues(contentValues).build());
    
        try {
            contentResolver.applyBatch(ContactsContract.AUTHORITY, ops);
        } catch (Exception e) {
            Log.d(LOG_TAG, "Can't update Contact's IM field.");
        }
    }
    
    /**
     * This method remove IM entry at default Contact application.
     * 
     * @param contentResolver
     *            content resolver
     * @param uid
     *            User id from android
     * @param account
     *            account name
     */
    public static void removeIMContactField(ContentResolver contentResolver,
            String uid, String account) {
        ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>();
    
        ops.add(ContentProviderOperation
                .newDelete(Data.CONTENT_URI)
                .withSelection(
                        ContactsContract.Data.RAW_CONTACT_ID + "=? and "
                                + ContactsContract.Data.MIMETYPE + "=? and "
                                + ContactsContract.CommonDataKinds.Im.DATA
                                + " = ?",
                        new String[] {
                                String.valueOf(uid),
                                ContactsContract.CommonDataKinds.Im.CONTENT_ITEM_TYPE,
                                account }).build());
    
        try {
            contentResolver.applyBatch(ContactsContract.AUTHORITY, ops);
        } catch (Exception e) {
            Log.d(LOG_TAG, "Can't delete Contact's IM field.");
        }
    }
    
    /**
     * This method remove IM all entries at default Contact application 
     * 
     * @param contentResolver
     *            content resolver
     */
    public static void deleteAllIMContactField(ContentResolver contentResolver) {
        ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>();
    
        ops.add(ContentProviderOperation
                .newDelete(Data.CONTENT_URI)
                .withSelection(
                        ContactsContract.Data.MIMETYPE
                                + "= ? and "
                                + ContactsContract.CommonDataKinds.Im.CUSTOM_PROTOCOL
                                + "= ?",
                        new String[] {
                                ContactsContract.CommonDataKinds.Im.CONTENT_ITEM_TYPE,
                                IM_LABEL }).build());
    
        try {
            contentResolver.applyBatch(ContactsContract.AUTHORITY, ops);
        } catch (Exception e) {
            Log.d(LOG_TAG,
                    "An exception occurred when deleting all IM field of Contact.");
        }
    }
    

    Hope some one found this useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to integrate my app with Facebook, Twitter and Flickr. But the
I'm developing on the Google App Engine and I would like to integrate Facebook
I would like to integrate new feature of iOS5 NEWSSTAND in my app. But
I would like to integrate with the Windows Phone 7 browser so that when
I'm trying to integrate Facetime in my app so basically what I would like
We have an asp.net mvc application that we would like to integrate a FileSystemWatcher
I am web-developer. I would like to integrate 3D Content into my web-site. The
Is there a way to integrate CodeIgniter with phpBB3? I would like to use
How would you integrate things like this in a RESTful design? Marking an email
I have two web applications written in Flex I would like to integrate. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.