I want to read all the messages and their respective details from my phone. For this I am using the Uri like this:
Uri sms = Uri.parse(\"content://sms/\");
<
content://sms is not part of the official Android API, and as such it's not a good idea to use it. It may stop working, and some phones that use their own implementations for SMS (HTC Sense, maybe?) may have their own content provider that won't work with your code.
That said, if you really want to dig into it, you can look at the source code for it.
But again, heed this warning: http://android-developers.blogspot.com/2010/05/be-careful-with-content-providers.html.