How to use LocalBroadcastManager?

后端 未结 13 3271
天命终不由人
天命终不由人 2020-11-21 04:15

How to use/locate LocalBroadcastManager as described in google docs and Service broadcast doc?

I tried to google it, but there is no code available to s

13条回答
  •  青春惊慌失措
    2020-11-21 05:19

    In Eclipse, eventually I had to add Compatibility/Support Library by right-clicking on my project and selecting:

    Android Tools -> Add Support Library

    Once it was added, then I was able to use LocalBroadcastManager class in my code.


    Android Compatibility Library

提交回复
热议问题