Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cursor cursor = rawQuery("sql query",
- new String[]{whereArgs});
- adapter = new android.support.v4.widget.SimpleCursorAdapter(context,
- android.R.layout.two_line_list_item,
- cursor,
- new String[]{"IdColumn", "TextColumn"},
- new int[]{android.R.id.text1, android.R.id.text2},
- 0);
- listView.setAdapter(adapter);
- }
Add Comment
Please, Sign In to add comment