Firebase - How to write/read data per user after authentication : <p>I have tried to understand but not able to see how and where might be the data I am storing after login is going.</p>

<pre><code>public static final String BASE_URL = "https://xyz.firebaseio.com";

Firebase ref = new Firebase(FirebaseUtils.BASE_URL);
    ref.authWithPassword("xyz@foo.com", "some_password", new Firebase.AuthResultHandler() {

    @Override
    public void onAuthenticated(AuthData authData) {
        Toast.makeText(LoginActivity.this, "Login Successful", Toast.LENGTH_SHORT).show();
        startActivity(new Intent(LoginActivity.this, MainActivity.class));
    }
    @Override
    public void onAuthenticationError(FirebaseError firebaseError) {
    }
}
</code></pre>

<p>At this point I am successfully authenticated and landed onto <code>MainActivity</code>. Next in <code>onCreate</code> of <code>MainActivity</code>. I initialize <code>Firebase</code></p>

<pre><code>firebase = new Firebase(FirebaseUtils.BASE_URL).child("box");

// adapter below is an ArrayAdapter feeding ListView
firebase.addChildEventListener(new ChildEventListener() {
    @Override
    public void onChildAdded(DataSnapshot dataSnapshot, String s) {
        if (dataSnapshot.getValue(Box.class) instanceof Box)
            adapter.add(dataSnapshot.getValue(Box.class).getName());
    }

    @Override
    public void onChildChanged(DataSnapshot dataSnapshot, String s) {
        adapter.remove(dataSnapshot.getValue(Box.class).getName());
    }

    // other callbacks
}
</code></pre>

<p>There is a add button that I used to push new records from Android to <code>Firebase</code>.</p>

<pre><code>final Button button = (Button) findViewById(R.id.addButton);
button.setOnClickListener(new View.OnClickListener() {
    public void onClick(View v) {
        Box box = new Box("Box " + System.currentTimeMillis(), "Location " + System.currentTimeMillis());
        Firebase fbBox = firebase.child("" + System.currentTimeMillis());
        fbBox.setValue(box);
    }
});
</code></pre>

<p>But above code doesn't add any record (evident from <code>ListView</code> that is not updated) or atleast I might not know where to look for the data. I checked opening <code>Firebase</code> in browser, but I am not sure how to check for user specific data?</p>

<p>I modified my <code>Firebase Rules</code> like </p>

<pre><code>{
    "rules": {
      "users": {
        "$uid": {
          ".write": "auth != null &amp;&amp; auth.uid == $uid",
          ".read": "auth != null &amp;&amp; auth.uid == $uid"
        }
      }
    }
}
</code></pre>

<p>I tried to open URLs such as <a href="https://xyz.firebaseio.com/xxxxxx-xxxxx-xxxx-xxxxx-xxxxxxxxxxxx">https://xyz.firebaseio.com/xxxxxx-xxxxx-xxxx-xxxxx-xxxxxxxxxxxx</a> but it wouldn't show any data.</p>

<p>I would like to have some information on:</p>

<ol>
<li><p>How to add user specific data after authentication. Can't it be seamless like when we don't have any restriction on read/write on user basis, because I could easily read/write data.</p></li>
<li><p>Is there any <code>Firebase</code> web view to visualize the database or see JSON data, where I can see/modify the data to/from Android device?</p></li>
</ol>
