Code example for AlphabetIndexer

	public IndexedCursorAdaptor(Context context, int layout, Cursor c,
			String[] from, int[] to) {
		super(context, layout, c, from, to);
		alphaIndexer = new AlphabetIndexer(c, 1, 
	public int getPositionForSection(int arg0) {
		return alphaIndexer.getPositionForSection(arg0);
	public int getSectionForPosition(int arg0) {
		return alphaIndexer.getSectionForPosition(arg0);
	public Object[] getSections() {
		return alphaIndexer.getSections();
Connect your IDE to all the code out there  Get Codota for Java