Code example for CursorAdapter

    public class CustomCursorAdapter extends CursorAdapter {
        public CustomCursorAdapter(Context context, Cursor c) {
            super(context, c, true);
        public void bindView(View view, Context context, Cursor cursor) {
            String entry = cursor.getString(cursor.getColumnIndex(StatsSearchEngineTermsTable.Columns.SEARCH));
            int total = cursor.getInt(cursor.getColumnIndex(StatsSearchEngineTermsTable.Columns.VIEWS));
            // entries 
            TextView entryTextView = (TextView) view.findViewById(;
            DecimalFormat formatter = (DecimalFormat) DecimalFormat.getInstance(Locale.getDefault());
Connect your IDE to all the code out there  Get Codota for Java