本文整理匯總了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);
}