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

  • Home
  • SEARCH
  • 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 8167225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:08:00+00:00 2026-06-06T20:08:00+00:00

Ok, guys, here’s my code for getting SMS: Cursor cursor = getContentResolver().query(Uri.parse(uri), null, CallLog.Calls.DATE

  • 0

Ok, guys, here’s my code for getting SMS:

Cursor cursor = getContentResolver().query(Uri.parse(uri),
                null, CallLog.Calls.DATE + " > " + lastSmsTime, null,
                CallLog.Calls.DATE + " ASC");

Where type is:

"content://sms/inbox"
"content://sms/sent"

And for calls:

String[] projection = new String[] { CallLog.Calls.NUMBER,
                CallLog.Calls.TYPE, CallLog.Calls.DURATION, CallLog.Calls.DATE };
Cursor managedCursor = getContentResolver().query(
                CallLog.Calls.CONTENT_URI, projection,
                CallLog.Calls.DATE + " > " + lastCallTime, null,
                CallLog.Calls.DATE + " ASC");

First of all, I know that this is undocumented provider(as you see, I use column constants from different one).

Funny thing is that this is working ok on several 2.3.x devices. But now I tried this on Galaxy S II(ICS 4.0.3). Now all SMS are duplicated in calls provider.

Has anyone come across this issue?

UPD
I found the same question here, keep looking for the solution.

UDD 2 from what I know now, Samsung now stores everything in one log, so I’ll try to find a way to reverse-engineer log application.

Anyway, still looking for solution to separate sms and calls.

  • 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-06-06T20:08:01+00:00Added an answer on June 6, 2026 at 8:08 pm

    Ok, that’s might be the solution, so I’m posting it:
    Samsung logs provider has lot’s of columns, among them is

    logtype
    

    which, as far as I see, for calls is 100, for SMS is 300 and for MMS is 200.

    It’s also possible to detect manufacturer:

    String man = android.os.Build.MANUFACTURER;

    So, for samsung devices there should be separate code which will check the logtype.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey Guys, here is my code for this, the only help i get from
I have some guys here who have code that needs to be compiled with
Hi guys here is my code: class Tailor < ActiveRecord::Base has_many :tailor_items has_many :order_items
Here is my code guys, what am I doing wrong (I am forced to
Guys - I have no idea what is causing my code to break here
Hey everyone, You guys here are awesome, I'm getting so many questions answered, its
Hey guys here is my code: <script>$('td#view-details').click(function() { var fg = $(this).closest('td').siblings(':first-child').text(); $('#'+fg+'confirm').click(function ()
Rather basic question here guys. Basically I have code like this: public SuperPanel() {
Good morning/afternoon/evening guys Here is the thing. I'm making a registering gsp that it
Having another tough one here guys, basically I would like to check if a

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.