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?
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With