Tell me more ×  How do I use the selectionArgs String in
query()? I wish I could just set it to null, as I have no use
for it. I am just trying to load an entire unsorted, ungrouped
table from a database into a Cursor.  share|improve this
question You can set them to null. Show your code. –  Snicolas
May 8 '12 at 21:46 Sometimes, the first step is to actually try
something. –  dymmeh May 8 '12 at 21:48 add comment  2 Answers
up vote 3 down vote accepted  Yes, you may set all parameters to
null except the table name.  for example:  Cursor cursor =
db.query("TABLE_NAME", null, null, null, null, null, null);
share|improve this answer add comment  selectionArgs replace any
question marks in the selection string.  for example:  String[]
args = { "first string", "" }; Cursor cursor =
db.query("TABLE_NAME", null, "name=? AND email=?", args, null);
as for your question - you can use null  share|improve this
answer I can't understand why this is not the accepted answer..
It simple and clear and it answer the questio