Questions tagged [calllog]

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

296 questions
28
votes
2 answers

How to implement a ContentObserver for call logs

I'd like to know if there is a way to know if the content provider of callings has changed. I mean, if I make a call, or I answer a call, it returns a "flag" that a new log has been added to the call log, or the place where Android store…
rogcg
  • 10,451
  • 20
  • 91
  • 133
12
votes
2 answers

How to programmatically insert call log entries WITH display name and photo?

I am able to programmatically insert an entry into the Android call log with a number, date, duration & type BUT I cannot figure out how to also include a photo, label and name? The entry I'm adding is for an existing Contact with the exact same…
dchappelle
  • 1,580
  • 2
  • 13
  • 22
12
votes
3 answers

android adding number to Call logs

Is it by anyway possible to write to call logs database?? I mean i want to add selected numbers to the call history. I tried searching the tutorial on net but couldn't find any... Though 1 thing is for sure, IT CAN BE DONE. coz i have seen lots of…
JaVadid
  • 7,107
  • 13
  • 42
  • 54
12
votes
6 answers

How to remove call logs from android programmatically?

how to delete/remove call log from application. I am doing like this this.getContentResolver().delete(CallLog.Calls.CONTENT_URI,null,null); it not working.
sai
  • 2,562
  • 8
  • 31
  • 46
9
votes
9 answers

Get Last Call Duration in android

I am looking for an easiest way to get call duration of last dialed number. So for e.g if I have made a call to my mom once I cut the call a notification with the duration should come up. I am trying out the following but the problem is that it…
TheDevMan
  • 5,914
  • 12
  • 74
  • 144
8
votes
2 answers

How do I create an Intent that opens the Call Log Activity?

I want to create an Intent that opens the screen showing the call logs of the current device? How would I specify such an Intent?
Janusz
  • 187,060
  • 113
  • 301
  • 369
8
votes
2 answers

Calllogs returning all logs calls as well as sms logs, how can i filter only call logs?

I am trying to get all the Call-Logs excluding SMS but i get a merged list. How can i filter call logs for calls only? I am using following code. String[] strFields = { android.provider.CallLog.Calls.NUMBER, …
6
votes
3 answers

Is it possible to detect rejected calls in Android?

In my application, it would be nice to intercept when the user rejects a call, i.e. choose to send busy tone. Is there any way, besides being notified when there is an incoming call, to do this? I have not found anything in the docs regarding this.…
AndersG
  • 365
  • 4
  • 12
6
votes
2 answers

Writing call log in an Android device

I have created a fake caller, and one place I'm stuck is writing the call logs. Can someone explain how to write a call log and what permissions are required for this? I found an answer at How can I update the contents of an entry in the Call Log?…
Sanjay Joshi
  • 2,036
  • 6
  • 33
  • 48
5
votes
2 answers

how to find outgoing number in Telephony manager

I am using this: public void onCallStateChanged(int state, String incomingNumber) which is listening to: telephonyManager.listen(listener,PhoneStateListener.LISTEN_CALL_STATE); I want to know both outgoing and incoming calls but for now I only get…
Swati
  • 153
  • 1
  • 5
  • 10
5
votes
0 answers

how to access call log and sms in react native expo

how to open SMS-log and call-log in react native using expo..
Riyaz Mirza
  • 149
  • 1
  • 2
  • 8
5
votes
1 answer
5
votes
1 answer

How to get contacts with which the user talks often?

Is it possible using ContactsContract to get contacts with which the user talks often? I know I can use the CallLog ContentProvider and try to figure that out, but I wanted to know if there is already a way to do it.
dors
  • 5,802
  • 8
  • 45
  • 71
5
votes
3 answers

How do you clear your call logs history in android?

How can you clear the entire call log history in android? Currently i have this code that can only clear a particular call log public void DeleteCallLogByNumber(String number) { String queryString="NUMBER="+number; …
dythe
  • 840
  • 5
  • 21
  • 45
4
votes
2 answers

How can I pick a contact from call log?

How can I pick a contact from call logs? This is my code, but when i try Intent.ACTION_PICK , it doesn't work Intent showCallLog = new…
1
2 3
19 20