You could probably, call a Cursor's method that returned the field of the specified content's datbase table. I have actually faced the same problem today, while trying to build an SMS application. My problem is that when trying to retrieve any info from the Cursor, I get a Security exception mentioning something about Permissions.
Do you have any idea what this might be? Should I add any permission declaration in the Manifest file of my application? Concerning the URI, I have read around that it is content://sms/inbox Hope I helped, while it seems that I m looking for the same information as you do. Please let me know if you have any new on that. many thanx On Apr 2, 6:35 pm, binklee <[email protected]> wrote: > Hi everybody, > > I unfortunately don't find the necessary documentation to retrieve > theSMSalready received in theinbox. > > My goal is to do smthg like : > > ContentResolver cr = mCtx.getContentResolver(); > Cursor cur = cr.query(Uri.parse("content://sms/inbox"), > null, null, null, null); > > while (cur.moveToNext()) { > // HOW TO KNOW HOW SHOULD I USE MY CURSOR? > } > > My questions are : > * Is the URI correct ? I heard about content://sms/inbox and > content://sms/conversation. > * What are the columns where my cursor points ? Where can I find this > kind of information? > * Am I using the good method ? > > Thank you for your help, > Deniz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

