I make a BroadcastReceiver
to receive Phone number of the person who call me
I suggest you to use Phone.CONTENT_FILTER_URI
instead of PhoneLookup.CONTENT_FILTER_URI
because PhoneLookup can be empty and you will get no result from time to time (tested on LG-P500, froyo)
The problem on my device happens for example when:
PhoneLookup.CONTENT_FILTER_URI
to query for a contactNot all devices seems to be affected
Using PhoneLookup.CONTENT_FILTER_URI
the returned cursor is always empty.
Using Phone.CONTENT_FILTER_URI
everything is ok (you find the contact if any).
Therefore I suggest you to always use Phone.*
Uris except when you really need to use PhoneLookup.*
... Which usually is just address book synchronization related stuff (and most of the times is not what you are interested in).