本文整理汇总了Java中com.csipsimple.api.SipProfile.FIELD_DISPLAY_NAME属性的典型用法代码示例。如果您正苦于以下问题:Java SipProfile.FIELD_DISPLAY_NAME属性的具体用法?Java SipProfile.FIELD_DISPLAY_NAME怎么用?Java SipProfile.FIELD_DISPLAY_NAME使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.csipsimple.api.SipProfile
的用法示例。
在下文中一共展示了SipProfile.FIELD_DISPLAY_NAME属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AccountsEditListAdapter
public AccountsEditListAdapter(Context context, Cursor c) {
super(context,
R.layout.accounts_edit_list_item, c,
new String[] {
SipProfile.FIELD_DISPLAY_NAME
},
new int[] {
R.id.AccTextView
}, 0);
}
示例2: onCreateLoader
@Override
public Loader<Cursor> onCreateLoader(int id, Bundle args) {
return new CursorLoader(getActivity(), SipProfile.ACCOUNT_URI, new String[] {
SipProfile.FIELD_ID + " AS " + BaseColumns._ID,
SipProfile.FIELD_ID,
SipProfile.FIELD_DISPLAY_NAME,
SipProfile.FIELD_WIZARD,
SipProfile.FIELD_ACTIVE
}, null, null, null);
}
示例3: createHeaderCursorFor
/**
* Creates a cursor that contains a single row and maps the section to the
* given value.
*/
private Cursor createHeaderCursorFor(SipProfile account) {
MatrixCursor matrixCursor =
new MatrixCursor(new String[] {
BaseColumns._ID,
ContactsWrapper.FIELD_TYPE,
SipProfile.FIELD_DISPLAY_NAME,
SipProfile.FIELD_WIZARD,
SipProfile.FIELD_ANDROID_GROUP,
SipProfile.FIELD_PUBLISH_ENABLED,
SipProfile.FIELD_REG_URI,
SipProfile.FIELD_PROXY,
SipProfile.FIELD_ACC_ID
});
String proxies = "";
if(account.proxies != null) {
proxies = TextUtils.join(SipProfile.PROXIES_SEPARATOR, account.proxies);
}
matrixCursor.addRow(new Object[] {
account.id,
ContactsWrapper.TYPE_GROUP,
account.display_name,
account.wizard,
account.android_group,
account.publish_enabled,
account.reg_uri,
proxies,
account.acc_id
});
return matrixCursor;
}