Broadcast intent vs multicast listener implementation on Android -


i want enable several objects subscribe event @ same time.

currently see 2 approaches: send broadcast intents, or implement multicast listeners (a manager class containing array of subscribed listeners, , subscribing , unsubscribing functionality) such built-in events in c#.

which best practice on android? or there other approach worth considering?

you may try localbroadcastmanager, lightweight solution sending broadcast intents, , part of android support library v4.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -