title: Google firebase - how to share database with other apps
body: <p>I know that, firebase there is a real time database and I have made use of it. But its based on authentication from the user first. What I would like to do is have the firebase realtime database share its content with other apps. Just like a <code>ContentProvider</code> in Android. </p>
  
  <p>When I call :</p>
  
  <pre><code>FirebaseDatabase database = FirebaseDatabase.getInstance();
  </code></pre>
  
  <p>This is going to get the firebaseDatabase only for my app. I want other apps to be able to use the real time database as well. How can they connect to it?</p>
  
  <p>UPDATE:<br>
  Conceptually can a contentProvider solve this issue? since a contentProvider is just an abstraction and it does not care what the datasource is, instead of using sql as the source i could use firebase db. Then since the firebase db is wrapped inside a contentProvider i could then expose a URI for other apps to use and make the contentProvider public. I'll have to look more into this but should be possible since contentProvider is a wrapper for a data sources either network or local. The ContentProvider.query command would return a cursor though, not sure how to make a cursor out of the retrieved firebase data. </p>