How many database columns associated with a SMS in android?

前端 未结 6 911
野的像风
野的像风 2020-12-04 20:15

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/\");
<         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 20:51

    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.

提交回复
热议问题