String temptext = this
.getString(R.string.remove_from_screen_contact_hint);
dialogTitleText = this.getString(R.string.delete_to_screen);
Object[] dialogContactName = new Object[1];
dialogContactName[0] = contactItem.getContactName();
;
.getString(R.string.remove_from_screen_contact_hint);
dialogTitleText = this.getString(R.string.delete_to_screen);
Object[] dialogContactName = new Object[1];
dialogContactName[0] = contactItem.getContactName();
;
dialogText = String.format(temptext, dialogContactName);
<string name="remove_from_screen_contact_hint">Are you sure to move [%1$s] to the desktop?</string>