Code example for ArrayAdapter

Methods: getItemremove

0
	} 
 
	private void deleteMember(int pos) {
 
		ArrayAdapter adapter = (ArrayAdapter) mMembersList.getAdapter();
		adapter.remove(adapter.getItem(pos));
		/* 
		 * cDetails.moveTo(pos); cDetails.deleteRow(); 
		 */ 
		save(); 
	} 
 
	private void save() { 
		ArrayAdapter aa = (ArrayAdapter) mMembersList.getAdapter();
		StringBuffer sb = new StringBuffer();
		for (int i = 0; i < aa.getCount(); i++) {
			String category = (String) aa.getItem(i);
			if (!TextUtils.isEmpty(category)) {
				sb.append(category);
				sb.append(News.CAT_DELIMITER);
			}