How do I get the contact details of the sender of an SMS? I'm trying to figure out how to retrieve the photo of a sender, but when I attempt to grab sender details for the sms message, it returns either NULL or 0:
String number = getString(cur.getColumnIndexOrThrow("_id"));
That code is in a while loop, where I get all messages stored on the device and attempt to extract sender details for processing.