I make a BroadcastReceiver
to receive Phone number of the person who call me
<intent-filter>
<action
android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
How to check if the phone number receive is on my contact list ?
Do you have a tip to know if this phone number exist on contact list with out loading contact list ?
I don't want more information, just if this phone number exist.If it's not possible, and I must load contact list, how to do it on
BroadcastReceiver
?
When I try to dogetContentResolver
, it's not working because I'm onBroadcastReceiver
and not insideActivity
...
Thanks for your help