Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created June 8, 2017 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/838e044fd96c269276868602dc2349f7 to your computer and use it in GitHub Desktop.
Save jezinka/838e044fd96c269276868602dc2349f7 to your computer and use it in GitHub Desktop.
Cursor res = db.rawQuery(query, queryArgs);
if (res != null && res.getCount() > 0) {
res.moveToFirst();
do {
array_list.add(res.getString(0));
} while (res.moveToNext());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment