}
/**
- * The content:// style URI for this table joined with useful data from
- * {@link Data}.
- *
- * @deprecated Please use plain CONTENT_URI for the same result
- */
- @Deprecated
- public static final Uri CONTENT_SUMMARY_URI = CONTENT_URI;
-
- /**
* The content:// style URI used for "type-to-filter" functionality on the
* {@link #CONTENT_URI} URI. The filter string will be used to match
* various parts of the contact name. The filter argument should be passed
public static final Uri CONTENT_FILTER_URI = Uri.withAppendedPath(
CONTENT_URI, "filter");
- @Deprecated
- public static final Uri CONTENT_SUMMARY_FILTER_URI = CONTENT_FILTER_URI;
-
/**
* The content:// style URI for this table joined with useful data from
* {@link Data}, filtered to include only starred contacts
public static final Uri CONTENT_STREQUENT_URI = Uri.withAppendedPath(
CONTENT_URI, "strequent");
- @Deprecated
- public static final Uri CONTENT_SUMMARY_STREQUENT_URI = CONTENT_STREQUENT_URI;
-
/**
* The content:// style URI used for "type-to-filter" functionality on the
* {@link #CONTENT_STREQUENT_URI} URI. The filter string will be used to match
public static final Uri CONTENT_STREQUENT_FILTER_URI = Uri.withAppendedPath(
CONTENT_STREQUENT_URI, "filter");
- @Deprecated
- public static final Uri CONTENT_SUMMARY_STREQUENT_FILTER_URI = CONTENT_STREQUENT_FILTER_URI;
-
public static final Uri CONTENT_GROUP_URI = Uri.withAppendedPath(
CONTENT_URI, "group");
- @Deprecated
- public static final Uri CONTENT_SUMMARY_GROUP_URI = CONTENT_GROUP_URI;
/**
* The MIME type of {@link #CONTENT_URI} providing a directory of
* people.
public static final Uri CONTENT_URI = Uri.withAppendedPath(AUTHORITY_URI, "raw_contacts");
/**
- * The content:// style URL for filtering people by email address. The
- * filter argument should be passed as an additional path segment after
- * this URI.
- *
- * @hide
- */
- @Deprecated
- public static final Uri CONTENT_FILTER_EMAIL_URI =
- Uri.withAppendedPath(CONTENT_URI, "filter_email");
-
- /**
* The MIME type of {@link #CONTENT_URI} providing a directory of
* people.
*/
public static final String _ID = "presence_id";
/**
- * Reference to the {@link RawContacts#_ID} this presence references.
- * <P>Type: INTEGER</P>
- *
- * TODO remove this from public API
- * @hide
- */
- @Deprecated
- public static final String RAW_CONTACT_ID = "presence_raw_contact_id";
-
- /**
* Reference to the {@link Data#_ID} entry that owns this presence.
* <P>Type: INTEGER</P>
*/
public static final String DATA_ID = "presence_data_id";
- @Deprecated
- public static final String IM_PROTOCOL = "im_protocol";
-
/**
* <p>Type: NUMBER</p>
*/
public static final String FORMATTED_ADDRESS = DATA;
/**
- * The agent who actually receives the mail. Used in work addresses.
- * Also for 'in care of' or 'c/o'.
- * <p>
- * Type: TEXT
- * @deprecated since this isn't supported by gd:structuredPostalAddress
- */
- @Deprecated
- public static final String AGENT = "data4";
-
- /**
- * Used in places where houses or buildings have names (and not
- * necessarily numbers), eg. "The Pillars".
- * <p>
- * Type: TEXT
- * @deprecated since this isn't supported by gd:structuredPostalAddress
- */
- @Deprecated
- public static final String HOUSENAME = "data5";
-
- /**
* Can be street, avenue, road, etc. This element also includes the
* house number and room/apartment/flat/floor number.
* <p>
public static final String CITY = "data9";
/**
- * Handles administrative districts such as U.S. or U.K. counties
- * that are not used for mail addressing purposes. Subregion is not
- * intended for delivery addresses.
- * <p>
- * Type: TEXT
- * @deprecated since this isn't supported by gd:structuredPostalAddress
- */
- @Deprecated
- public static final String SUBREGION = "data10";
-
- /**
* A state, province, county (in Ireland), Land (in Germany),
* departement (in France), etc.
* <p>
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
-import android.graphics.drawable.Drawable;
import android.net.Uri;
-import android.os.Handler;
-import android.os.Message;
import android.os.SystemClock;
-import android.provider.SocialContract;
import android.provider.ContactsContract.Contacts;
import android.provider.ContactsContract.Data;
import android.provider.ContactsContract.Intents;
import android.provider.ContactsContract.CommonDataKinds.Photo;
import android.provider.SocialContract.Activities;
import android.util.AttributeSet;
-import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.CheckBox;
import android.widget.FrameLayout;
import android.widget.ImageView;
-import android.widget.RelativeLayout;
import android.widget.TextView;
import com.android.internal.R;
private QueryHandler mQueryHandler;
protected long mContactId;
- protected Uri mContactSummaryUri;
protected Uri mContactUri;
protected Uri mStatusUri;
mContactId = contactId;
mContactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, mContactId);
- bindSummaryUri(ContentUris.withAppendedId(Contacts.CONTENT_SUMMARY_URI, mContactId));
+ bindContactUri(mContactUri);
bindSocialUri(ContentUris.withAppendedId(Activities.CONTENT_CONTACT_STATUS_URI, mContactId));
}
/**
* Convenience method for binding {@link Contacts} header details from a
- * {@link Contacts#CONTENT_SUMMARY_URI} reference.
+ * {@link Contacts#CONTENT_URI} reference.
*/
- public void bindSummaryUri(Uri contactSummary) {
- mContactSummaryUri = contactSummary;
- mQueryHandler.startQuery(TOKEN_CONTACT_INFO, null, mContactSummaryUri, HEADER_PROJECTION,
+ public void bindContactUri(Uri contactUri) {
+ mQueryHandler.startQuery(TOKEN_CONTACT_INFO, null, contactUri, HEADER_PROJECTION,
null, null, null);
}