I'm new to android programming. just to improve my skills, i started with some project in my mind. when app starts, it will show a button. on click of it, it will allow me to select a contact from the address book. then i want to retrieve all the sms sent to that contact (if they are stored in sms outbox). Is it possible. Can some one guide me. If there is some tutorial on these topics, can you let me know the URL or source code? Thanks in Advance.
A:
First, it is not possible. There are many SMS clients for Android, many of whom do not expose an "sms outbox".
Second, even if you limit yourself to the SMS application that ships with "Google Experience" phones, the "sms outbox" is not part of the SDK.
If you wish to create an application that sends SMS messages, there is the SmsManager
class you can use.
CommonsWare
2010-06-16 11:02:58
A:
As folks mentioned, the sms outbox is undocument. If you want to access it, you sholud have some skills first.
- trace android source code
- learn how to use content provider (learn how to create a content provider is better)
- what's the authority
- know does the URI matched
- how to manipulate the Cursor
- write some sample code to test
You can find the SMS/MMS content provider in this url:
http://android.git.kernel.org/?p=platform/packages/providers/TelephonyProvider.git;a=summary
qrtt1
2010-06-16 11:16:22