Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
class IndexerAdapter extends BaseAdapter implements SectionIndexer { ArrayList mContacts; HashMap alphaIndexer; String[] sections; public IndexerAdapter(ArrayList contacts) { alphaIndexer = new HashMap(); mContacts = contacts; // elements must be sorted Collections.sort(mContacts); // Put the first letters of each element into a map for (int i = mContacts.size() - 1; i >= 0; i--) { String element = mContacts.get(i).getName(); alphaIndexer.put(element.substring(0, 1), i); } // now we have an hashmap containing for each first-letter // sections(key), the index(value) in where this sections begins // we have now to build the sections(letters to be displayed) // array .it must contains the keys, and must (I do so...) be // ordered alphabetically Set keys = alphaIndexer.keySet(); // set of letters // Copy into a List for sorting Iterator it = keys.iterator(); ArrayList keyList = new ArrayList(); while (it.hasNext()) { String key = it.next(); keyList.add(key); } Collections.sort(keyList); // Convert to array sections = new String[keyList.size()]; keyList.toArray(sections); } @Override public int getPositionForSection(int section) { String letter = sections[section]; return alphaIndexer.get(letter); } @Override public int getSectionForPosition(int position) { return 0; } @Override public Object[] getSections() { return sections; } @Override public int getCount() { return mContacts.size(); } @Override public Object getItem(int position) { return mContacts.get(position); } @Override public long getItemId(int position) { return position; } @Override public View getView(int position, View convertView, ViewGroup parent) { View view; if(convertView == null){ LayoutInflater li = getLayoutInflater(); view = li.inflate(R.layout.groups_item, null); TextView label = (TextView)view.findViewById(R.id.groups_item_title); label.setText(mContacts.get(position).getName()); label = (TextView)view.findViewById(R.id.groups_item_subtitle); label.setText(mContacts.get(position).getNumber()); } else { view = convertView; } return view; } }