Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3964916
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:23:33+00:00 2026-05-20T03:23:33+00:00

In my app I need to query both the SMS and the MMS log

  • 0

In my app I need to query both the SMS and the MMS log to get the history of all incoming and outgoing messages. This code has worked wonderfully for SMS:

Cursor c = cr.query(Uri.parse("content://sms"), null, null, null, null);

But when I try the following I get completely different results:

Cursor c = cr.query(Uri.parse("content://mms"), null, null, null, null);

The SMS query returns data that includes the message address (phone number), contact name, message subject, message body, etc… The same query for MMS returns a bunch of nulls or numeric value fields that I can’t make any sense of. I really need a list of all MMS messages currently on the phone with the phone number or contact ID associated with it, and if the message was an incoming or outgoing message. In the SMS query results I can get the phone number from the address field, and the incoming/outgoing type from the type field but neither of these exist when I query for MMS.

Is there a different content Uri that I need to query for this sort of MMS data? Any help would be greatly appreciated.

Edit: Just to clarify, I’m completely aware that this is an unsupported content provider. However since there is no supported way of doing this I’m fully willing to test and support this on a per phone/per OS version basis. Just to keep the discussion on track lets say this question is specific to Android 1.6 on an HTC Dream (G1) or HTC Magic (MyTouch). How would you accomplish this task on that specific phone and OS version? Or if it’s not possible on those, but it is possible on Android 2.0 on a Motorola Droid, then I would find that information very helpful as well. But regardless, lets stick to the discussion of how to accomplish this task in a supported or unsupported manner and not let it devolve into a discussion of how we should all stay away from things that aren’t supported by the API, which is something I find the Android discussion groups to be riddled with and which I feel provides little to no help whatsoever. If I’m using an unsupported method, that’s fine, show me the supported method of accomplishing that task. If there is no supported method, then why does the API support allowing me to request permission to read SMS via android.permission.READ_SMS?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T03:23:34+00:00Added an answer on May 20, 2026 at 3:23 am

    These are the content uris I’ve used in the past. You’ll have to fiddle with the values you get back, and it’s a long way from getting the parts of an MMS, but hopefully it’ll help.

    // root URI for MMS messages
    static final String MMS_CONTENT_URI = "content://mms";
    
    // root URI for MMS and SMS threads
    public static final String MMS_SMS_CONTENT_URI = "content://mms-sms";
    
    // URI of MMS inbox
    public static final String RECEIVED_MMS_CONTENT_URI = MMS_CONTENT_URI + "/inbox";
    
    // URI where sent MMSes are stored
    public static final String SENT_MMS_CONTENT_URI = MMS_CONTENT_URI + "/sent";
    
    // URI where sent MMSes are stored
    public static final String MMS_PART_URI = MMS_CONTENT_URI + "/part";
    
    // URI for incoming SMSes (also triggers on MMSes)
    public static final String SMS_INBOX_URI = "content://sms/inbox";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an app where I need to query Google for businesses near
Got a c#.net app which I need to modify. The query at the moment
In my app I need to draw a widget contents onto Bitmap. The code(pseudo)
Im using mongomapper to back a rails app with mongodb and need to query
My app, Datastore, webapp2, and form-specific responses are all working :) but I need
Hi i'm making an app which need to get user's gmail account contact list
i have an app where i need to fire a jpql query with sum()
my app need to show user scrollable menu bar under tab bar like fox
For my GAE app I need to do some natural language processing to extract
My android app project need to add a new function of saving the click

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.