title: How to get the contact from the CONTENT URI
body: <p>I add a custom contact raw to my contacts from my app (like in whatsapp). When I click the custom raw, it open my app. In my viewing activity I check the action and get the content URI from <code>getIntent().getDataString()</code>. It gives me this - <code>content://com.android.contacts/data/10399</code>.
  Now I want to get the contact details from this URI. But when I check my contact list using the following code.</p>
  
  <pre><code>void checkContacts(Context context) {
      Cursor cursor = context.getContentResolver().query(
              ContactsContract.Data.CONTENT_URI,
              null,
              null, null, null);
      if (cursor != null) {
          Log.e(TAG, String.valueOf(cursor.getCount()));
          try {
              while (cursor.moveToNext()) {
                  Log.e(TAG, cursor.getString(cursor
                          .getColumnIndexOrThrow(ContactsContract.Data.CONTACT_ID)));
                  Log.e(TAG, "** " + cursor.getString(cursor
                          .getColumnIndexOrThrow(ContactsContract.Data.RAW_CONTACT_ID)));
              }
          } finally {
              cursor.close();
          }
      }
  }
  </code></pre>
  
  <p>But i couldn't find any <code>CONTACT_ID</code> or <code>RAW_CONTACT_ID</code> related to <code>10399</code>.
  So how do I get the contact detail from this URI?
  I don't want to get all the contacts. I want to get the specific contact related to the URI.</p>