本文整理汇总了Java中com.csipsimple.ui.filters.AccountFilters类的典型用法代码示例。如果您正苦于以下问题:Java AccountFilters类的具体用法?Java AccountFilters怎么用?Java AccountFilters使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AccountFilters类属于com.csipsimple.ui.filters包,在下文中一共展示了AccountFilters类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onAccountClicked
import com.csipsimple.ui.filters.AccountFilters; //导入依赖的package包/类
@Override
public void onAccountClicked(long id, String displayName, String wizard) {
if(id != SipProfile.INVALID_ID){
Intent it = new Intent(this, AccountFilters.class);
it.putExtra(SipProfile.FIELD_ID, id);
it.putExtra(SipProfile.FIELD_DISPLAY_NAME, displayName);
it.putExtra(SipProfile.FIELD_WIZARD, wizard);
startActivity(it);
}
}
示例2: onOptionsItemSelected
import com.csipsimple.ui.filters.AccountFilters; //导入依赖的package包/类
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case SAVE_MENU:
saveAndFinish();
return true;
case TRANSFORM_MENU:
startActivityForResult(new Intent(this, WizardChooser.class), CHOOSE_WIZARD);
return true;
case DELETE_MENU:
if (account.id != SipProfile.INVALID_ID) {
getContentResolver().delete(ContentUris.withAppendedId(SipProfile.ACCOUNT_ID_URI_BASE, account.id), null, null);
setResult(RESULT_OK, getIntent());
finish();
}
return true;
case FILTERS_MENU:
if (account.id != SipProfile.INVALID_ID) {
Intent it = new Intent(this, AccountFilters.class);
it.putExtra(SipProfile.FIELD_ID, account.id);
it.putExtra(SipProfile.FIELD_DISPLAY_NAME, account.display_name);
it.putExtra(SipProfile.FIELD_WIZARD, account.wizard);
startActivityForResult(it, MODIFY_FILTERS);
return true;
}
break;
default:
break;
}
return super.onOptionsItemSelected(item);
}