Disclaimer: I am fairly new to Android programming so I am trying to mimic iOS NSNotificationCenter.
I found that LocalBroadcastManager acts like NSNotifcationCenter. What I am trying to do is send a message from a static class to an activity when socket traffic finishes.
I found how to use LocalBroadcastManager from this stackoverflow answer
My question is how do I set the context('this') to my static class or I do not get the error "The method getInstance(Context) in the type LocalBroadcastManager is not applicable for the arguments (MY_STATIC_CLASS)".
LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
I am open to other way of getting this done if using LocalBroadcastManager is not the best way to send information from a static class to an activity.