title: Database notifications and screen refreshing
body: <p>I'm trying to do the following:</p>
  
  <p>When my Realm database is changed, I want to send an event to all registered screens (tabs) of my app.</p>
  
  <p>My approach to this, as I'm new to Android, is to create a singleton containing realm listeners, and send a broadcast using <code>LocalBroadcastManager</code> at that moment.</p>
  
  <p>My main issue here is that to send a broadcast I need a <code>Context</code>:</p>
  
  <pre><code>LocalBroadcastManager.getInstance(context).sendBroadcast()
  </code></pre>
  
  <p>However I realized storing the context as static in the Singleton is discouraged due to memory leaks.</p>
  
  <p>This makes me unsure of the best approach to do this. What do you recommend?</p>
  
  <p>Thanks!</p>