I am using broadcast receiver in my app to detect incomming call and it works fine. But problem is I can not send action to activity. I mean.. I want do something in activity not in receiver. I read many tutorial but they all are performing action in receiver. Any idea ?
Share
You can declare a
BroadcastReceiveras inner class of theActivity. In this case you can directly call activity’s methods: