Shortcuts dialog box title refers to many places in the android, such as text entry, click on contact picture, it will pop up three operating options: phone, view, text messaging. To achieve this operation, primarily through QuickContactBadge this view.
On the use of this class, little information online. At first I take a detour, that this class is responsible for the dialog. Actually not, this class is just a normal picture view, click on it will pop up a dialog box mentioned here.
Therefore, we only need to add the interface view, and then set its properties in the code can be:
<QuickContactBadge android:id="@+id/photo" android:layout_width="54dip" android:layout_height="57dip" android:layout_marginLeft="5dip" android:background="#ffffff" />
The most important thing is the code to the view associated with a contact uri
QuickContactBadge mPhotoView; mPhotoView = (QuickContactBadge) findViewById(R.id.photo); mPhotoView.assignContactFromPhone("123", true); mPhotoView.setMode(QuickContact.MODE_SMALL);
As above, to complete.
If the associated contact is not in your address book, it will pop up hints to the address book dialog box .