Questions tagged [calllog]

A call log on a mobile phone is a historical list of all made and received phone calls.

296 questions
4
votes
6 answers

getting the call logs of incoming and outgoing calls in android programmatically

I am making an app in which I want to get the call logs of all incoming, outgoing and missed calls. How can I do that?
ekjyot
  • 2,247
  • 7
  • 39
  • 63
4
votes
1 answer

I want to read call logs in the android

Possible Duplicate: How can I retrieve recently used contacts in android? I want to read recently used contacts. Anyone know how to do this?
kannappan
  • 2,250
  • 3
  • 25
  • 35
4
votes
2 answers

How do I get the latest call logs in Android Studio?

I have a code that works below. But I can't limit it. I just want to get the last 20 call logs. But that's how I see all-time search logs. It should only be the last call logs and I only need to see 20 pieces. Any help, I'd appreciate it. My…
İsa C.
  • 329
  • 5
  • 16
4
votes
0 answers

How to get sim card name for a call log item in android?

I am trying to get sim name for each call log like this one: Uri URI_PHONE = CallLog.Calls.CONTENT_URI; String SELECTION_PHONE = CallLog.Calls.NUMBER + "=?"; String[] SELECTION_ARRAY_PHONE = new String[]{phNum}; if…
Akash Sahu
  • 171
  • 1
  • 9
4
votes
0 answers

How to avoid content provider to block the main (UI) thread of execution

In my application, I am accessing call log and text messages using getContentResolver() It means I am working with android content-provider. That getContentResolver() is running in a background service. Everything is okay, but my main challenge is…
4
votes
1 answer

ContentObservers are useless

I'd love to be able to understand when a SPECIFIC item in the SMS or Call Log is changed. It's pretty easy to get notified when something changes in the appropriate content provider, but getting to the specific record is totally inefficient as one…
4
votes
1 answer

CallLog.Calls.CACHED_NAME is always returning null for some saved contacts

I am trying to show the call log details in my app but CallLog.Calls.CACHED_NAME is always returning null for some contacts even if it is a saved contact with name. The built-in call log is showing the names for these contacts correctly. This is my…
Shabeeralimsn
  • 797
  • 4
  • 11
  • 32
4
votes
1 answer

Get last call details from Call Log

I am using below code to get last call details from call log. public static CallDetails getLastCallDetails(Context context) { CallDetails callDetails = new CallDetails(); Uri contacts = CallLog.Calls.CONTENT_URI; try { Cursor…
Mehul Kanzariya
  • 888
  • 3
  • 27
  • 58
4
votes
1 answer

Get call log by sim slot in Marshmallow and below android

I want to get call log history by sim slot number. Like this image: For that I searched many sites till I got: Cursor managedCursor = getActivity().managedQuery(CallLog.Calls.CONTENT_URI, null, null, null, strOrder); int number =…
Vishal Dalve
  • 324
  • 3
  • 16
4
votes
2 answers

can i get a photo directlly from calllog.calls provider

i want to get a contact photo (if he has one) from the callLog. now i know i can get the number and then query the contacts provider for a contact id. however i want to know if there is a better way one that directly get the photo uri from the…
Gabriel H
  • 1,558
  • 2
  • 14
  • 35
4
votes
1 answer

What's the use of Android's new CallLog.Calls.NUMBER_PRESENTATION field?

I noticed a new field was added in API level 19 (Kitkat) called CallLog.Calls.NUMBER_PRESENTATION. The documentation says The number presenting rules set by the network. Allowed values: PRESENTATION_ALLOWED PRESENTATION_RESTRICTED …
dors
  • 5,802
  • 8
  • 45
  • 71
4
votes
1 answer

Get the SIM number used on a call through the call log of Android

I know Android SDK is big mess for dual SIM support, but stock dialer shows this information on call log which SIM card ( 1 or 2) was used in a call. I guess it´s stored on call log default database and just want to know if it is possible to…
Marcus Costa
  • 41
  • 1
  • 4
4
votes
3 answers

How do I send Call Log history via sms in Android?

I'm trying to send CallLog history via sms. Well the CallLog history is displaying in TextView but SMS is not working. Code: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
DroidLearner
  • 2,115
  • 5
  • 31
  • 50
4
votes
4 answers

Samsung device returns text messages when querying for call-log

Some of my users report that on their Samsung devices (GT-N7000 & SGH-I777) a query I make in my app for the CallLog.Calls displays also text messages. I've created a dump of their CallLog ContentProvider, and it seems to have extra fields not…
marmor
  • 27,641
  • 11
  • 107
  • 150
3
votes
1 answer

Android Emulator Contacts Manager source code?

I'm looking to "Android emulator contacts manager" and it looks exactly what I need :).. Does anybody know if it possible to find source code of that application ( I hope some android project for eclipse :P ) ? If does not, can you suggest similar…
mastak
  • 1,397
  • 1
  • 14
  • 28
1
2
3
19 20