title: How to connect to more than one firebase database from an android App
body: <p>I'm trying to have one project in Firebase that will be responsible for one common thing that all Apps.</p>
  
  <p>That is, I want to create Apps, then have these Apps access a particular Firebase Database of a project.</p>
  
  <p>Looking at the Firebase Android docs, I can't find a way to send data to another firebase database in another project using the following, but where reference is of another project.</p>
  
  <pre><code>DatabaseReference ref = FirebaseDatabase.getInstance().getReference().child("example");
          ref.push().setValue(d).addOnCompleteListener(new OnCompleteListener&lt;Void&gt;() {
              @Override
              public void onComplete(@NonNull Task&lt;Void&gt; task) {
                  finish();
              }
          });
  </code></pre>