Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void whosnext(View view) {
- // || is the concatenation operation in SQLite
- cursor = db.rawQuery("SELECT * FROM eventsv1 WHERE start_time > (DATETIME('now','+1 hour')) AND title LIKE ? ORDER BY date ASC, time DESC",
- new String[]{"%" + searchText.getText().toString() + "%"});
- adapter = new SimpleCursorAdapter(
- this,
- R.layout.artist_list_item,
- cursor,
- new String[] {"title", "time", "date", "title3", "style"},
- new int[] {R.id.title, R.id.time, R.id.date, R.id.title3, R.id.style});
- setListAdapter(adapter);
- }
Add Comment
Please, Sign In to add comment