title: How to close/destroy a Firebase reference in android?
body: <p>Here is the scenario -:</p>
  
  <p>A firebase reference is created </p>
  
  <pre><code>Firebase myRef = new Firebase(url)  // In Main Activity
  </code></pre>
  
  <p>User Clicks a button navigates to other activity .</p>
  
  <p>onPause() for Main activity is called.Is there a way to destroy this constructor ?</p>
  
  <p>This reference is creating some unexpected behavior.
  Simply calling finish() for Main activity will destroy it or not?</p>