Code example for AlphabetIndexer

Methods: getSections

0
			}, 
			CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER
		) { 
			@Override 
			public Object[] getSections() {
				return indexer.getSections();
			} 
			@Override 
			public int getPositionForSection(int section) {
				return indexer.getPositionForSection(section);
			} 
			@Override 
			public int getSectionForPosition(int position) {
				return indexer.getSectionForPosition(position);
			} 
		}; 
		setListAdapter(adapter);
	} 
	@Override 
	public void onListItemClick(ListView l, View v, int position, long id) {
		startActivity((new Intent(getActivity(),PackageManagerActivity.class)).putExtra("command","info").putExtra("package",((TextView)v.findViewById(R.id.package_name)).getText()));