Android Broadcast from Service To Activity

前端 未结 3 663
挽巷
挽巷 2020-12-16 14:00

I am trying to send a Broadcast from a service out to an Activity. I can verify the broadcast is sent from within the service, but the Activity doesn\'t pick up anything.

3条回答
  •  青春惊慌失措
    2020-12-16 14:51

    Inner class broadcast receiver will not be able to handle broadcast(means it unable to locate that class ). So make it as a separate class

    Definitely it will work.

提交回复
热议问题