I am trying to retrieve sms by phone number but I don't get any result. (I do get results if I replace where
and where_args
by null
)
String where = "address=?";
String[] where_args = new String[]{"+33 1 23 45 67 89"};
contentResolver.query(uri, new String[]{"*"}, where, where_args, null);
I suspect that there is a problem with the ?
because of the spaces, so I tried where = "address='?'"; and
where = "address=\"?\"";` but none worked
Any idea ? Thanks !