Firebase onDataChange not called
<p>I am working with Firebase for my Android app. I have successfully retrieved information in multiple places in my code using something like:</p>

<pre><code>dbRef = new Firebase(Constants.URL_DB);
childRef = dbRef.child(Constants.KEY_CHILD);
objectRef = childRef.child(objectId); 

// Log the URL to the object.
// This has been verified. The path is good.
Log.d("DEBUG", "To String: " + objectRef.toString()); 

childRef.addValueEventListener(new ValueEventListener()
    @Override
    public void onDataChange(DataSnapshot snapshot) {
        Log.d("DEBUG", "Success");
    }

    @Override
    public void onCancelled(FirebaseError firebaseError) {
        Log.e("DEBUG", "Failure");
    }
});
</code></pre>

<p>The exact same code has been use successfully in another activity but for some reason, it doesn't work in on particular activity (onDataChange is never called, neither is onCancelled). Could it be that The Firebase sessions in other activities are conflicting with this one? I have seen problems that could be resolved with:</p>

<pre><code>Firebase.goOnline();
Firebase.goOffline();
</code></pre>

<p>Althought I am not sure I understand what those exactly do. Maybe it is because I somehow can't access a child added by <code>push()</code> with his id?</p>

<p><strong>UPDATE:</strong></p>

<p>I successfully wrote in the database at objectRef, but <code>onDataChange()</code> is still never called.</p>