If I am able to register a receiver like so:
LocalBroadcastManager.getInstance(this).registerReceiver(mMessageReceiver, new IntentFilter("myStringFilter"));
and send out a broadcast like so:
Intent intent = new Intent("myStringFilter");
LocalBroadcastManager.getInstance(new Activity()).sendBroadcast(intent);
why even require Context for getInstance? If I can just say new Activity()
and it still works, what is the point?