[android-developers] Re: How can I query the sms by conversation?
The URI you're looking for is content://mms-sms/conversations?simple=true and the sort order is date DESC And as usual, with undocumented APIs from Google - they may change in the future / differ between handsets etc. - i.e. your app may stop working and your users start whining. If you're dead set on doing this I'd suggest adding a heap of error handling and also test on multiple devices from different vendors. On 28 Sep, 10:30, feeling3_4 lanwen.ban...@gmail.com wrote: Hi All, how can I query the latest sms of every conversation. just like native sms application in the android phone. everytime we start the sms application, it displays the conversations sorted by date. how can I achieve this? we can query all the sms, but I can't figure out how to query the sms by threads. thanks a lot -- 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
[android-developers] Re: How can I query the sms by conversation?
Wow, thanks a lot! I will give it a try. On 9月29日, 下午5时40分, Jens dunkingbikk...@gmail.com wrote: The URI you're looking for is content://mms-sms/conversations?simple=true and the sort order is date DESC And as usual, with undocumented APIs from Google - they may change in the future / differ between handsets etc. - i.e. your app may stop working and your users start whining. If you're dead set on doing this I'd suggest adding a heap of error handling and also test on multiple devices from different vendors. On 28 Sep, 10:30,feeling3_4lanwen.ban...@gmail.com wrote: Hi All, how can I query the latest sms of every conversation. just like native sms application in the android phone. everytime we start the sms application, it displays the conversations sorted by date. how can I achieve this? we can query all the sms, but I can't figure out how to query the sms by threads. thanks a lot -- 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