Broadcast receiver

I tried to run code in my laptop but it is crashing while i am calling