Android – Architecture – How to listen a source and update destination screen in real time by BroadcastManager?
Destination Activity/ Fragment Register BroadcastReceiver Source Activity/ Fragment Send Broadcast signal
Destination Activity/ Fragment Register BroadcastReceiver Source Activity/ Fragment Send Broadcast signal
Child fragment Add listener interface Call listener when something occurs Parent fragment Attach listener to child fragment where it is called Implement listener
Create a base layout class Embed base class into screen layout Set values for each UI element in Activity
Copyright © 2024 | WordPress Theme by MH Themes