I have a strange behaviour of BroadcastReceiver when trying to listen incoming call. I set up the BroadcastReceiver to listen to both incoming calls and sms. The BroadcastReceiver run after the booting is complete. When first i fake a call into the emulator, i can not catch the call. I try again with sms and my Broadcastreceiver can catch the sms correctly. I try again with the incoming call and now the BroadcastReceiver works. I restart the emulator and try again. It seems that i always have to fake a sms to trigger the BroadcastReceiver. After that the BroadcastReceiver behaves correctly as i want.
What did i do wrong?