Hi Martin, can you share your code about how to read the SMS from inbox? I want to read the SMS according the phone number, but i have no idea about that.
Thanks, John On Mar 19, 9:36 pm, Martin <martin....@gmail.com> wrote: > Hi, I'm having a problem reading theSMSmessages from the device. > When acquiring a content provider for the URI content://sms/inbox - > everything is fine, Ireadthe "person" column to find the foreign key > into the people table and I can ultimately reach the contact and their > name. > > However, I also want to traverse the sent messages too. When reading > from content://sms/sent, the person field always appears to be 0. Is > this the correct field to be reading to locate the recipient data for > the sent message? If so - why is it always 0. > > All my testing has been done in the emulator and I've created 3 > contacts. I've sent messages to those contacts from the emulator in > the normal manner you'd send a message. > > Just to reiterate, I can see the 4 sent messages andreadthe > associated body text. My problem is that I can't seem toreadthe > "person" ID and hence I can't work out who the recipient is. > > Any help would be greatly appreciated. > > Many thanks, > > Martin. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---