Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CallLog.Calls.NEW? What does it mean?

Tags:

android

I am currently trying to figure out what

CallLog.Calls.NEW

means.

The documentation says:

Whether or not the call has been acknowledged

( http://developer.android.com/reference/android/provider/CallLog.Calls.html#NEW ). I tried to reproduce this.

I made a call to another phone and hung up once it started ringing. What would I expect? An entry with TYPE = OUTGOING_TYPE and NEW = 0, right? But NEW is 1. That really doesn't make any sense to me...

Any ideas?

like image 578
Goddchen Avatar asked May 16 '11 21:05

Goddchen


2 Answers

See the source for it here.

The calls are always added with a NEW value of 1:

values.put(NEW, Integer.valueOf(1));

Probably, there is a method in the phone call log app or in the call notification to set it as zero. BTW, I did not look for that.

like image 101
Aleadam Avatar answered Oct 15 '22 08:10

Aleadam


I don't know for sure but my guess would be that in your test scenario the phone you called would have TYPE = INCOMING_TYPE and NEW = 0 because the call has not yet been acknowledged on that phone. On that phone you would see the little "missed call" icon in the Notification bar. That call would be considered NEW.

like image 26
Marcus Avatar answered Oct 15 '22 09:10

Marcus