I want to get addresses from Inbox SMS Messages
I am not sure if my query is correct.
final String SMS_URI_INBOX = "content://sms/inbox";
Uri uri = Uri.parse(SMS_URI_INBOX);
String[] projection = new String[] { "_id", "address", "person", "body", "date", "type" };
Cursor cur = getContentResolver().query(uri, projection, "address='?'", null, "address ASC");
List<String> spinnerArray = new ArrayList<String>();
if (cur.moveToFirst())
{
do
{
//How to get address
spinnerArray.add(address);
} while (cur.moveToNext());
}