merhabalar, listview'i db den çekip doldurdum. bu listview üzerinde edittext e yazılan harf veya kelimeye gre arama yapılmasını istiyorum. aramay isim, soyisim, şirket alanlarında yapmasını istiyorum. nasıl yaparım? ana class; @SuppressWarnings @Override protected void onCreate { super. onCreate ; requestWindowFeature ; setContentView ; dbHelper = new DBAdapter ; dbHelper. open ; Cursor cursor = dbHelper. getAllPerson ; String from = new String ; int to = new int ; dataAdapter = new SimpleCursorAdapter ; ListView listView = findViewById ; listView. setAdapter ; dbHelper. close ; listView. setOnItemClickListener(new OnItemClickListener { @Override public void onItemClick }); // Custom Search///////////// edtxtSearch = findViewById ; edtxtSearch. addTextChangedListener(new TextWatcher { @Override public void onTextChanged @Override public void beforeTextChanged @Override public void afterTextChanged }); } dataadapter; import android. content. ContentValues; import android. content. Context; import android. database. Cursor; import android. database. SQLException; import android. database. sqlite. SQLiteDatabase; import android. database. sqlite. SQLiteOpenHelper; import android. util. Log; public class DBAdapter { public static final String KEY_ROWID = "_id"; public static final String KEY_NAME = "name"; public static final String KEY_SURNAME = "surname"; public static final String KEY_COMPANY = "company"; public static final String KEY_EMAIL = "email"; public static final String KEY_PHONE = "phone"; private static final String TAG = "DBAdapter"; private DatabaseHelper mDbHelper; private SQLiteDatabase mDb; private static final String DATABASE_NAME = "ASRehber"; private static final String DATABASE_TABLE = "Person"; private static final int DATABASE_VERSION = 1; public static final String ALL_KEYS = new String ; private final Context mCtx; private static final String DATABASE_CREATE = "CREATE TABLE if not exists " + DATABASE_TABLE + " ;"; private static class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper @Override public void onCreate @Override public void onUpgrade } public DBAdapter public DBAdapter open throws SQLException public void close { if } public Cursor getAllPerson { String where = null; Cursor c = mDb. query ; if return c; } // Get a specific row public Cursor getPerson { String where = KEY_ROWID + "=" + rowId; Cursor c = mDb. query ; if return c; } public long insertPerson public boolean deletePerson public boolean updateRow } .

http://stackoverflow.com/questions/14663725/list-view-filter-android?

http://stackoverflow.com/questions/14663725/list-view-filter-android? hocam onu denedim yapamadım. for (int i = 0; i < mDatabaseOfNames. size ; i++) { String dataNames = mDatabaseOfNames. get ; if (dataNames. toLowerCase . startsWith(constraint. toString } bu kısımda mDatabaseOfName derken db yi mi kastetmiş eğer db ise benim mDb yi kounca size metodu gelmiyor. .