title: Add to another user array Parse Android
body: <p>In Parse I have another column in the User table known as 'Friends' which is an array. From my current user I am trying to add to another user's friends array.</p>
  
  <p>I have tried:</p>
  
  <pre><code>//buddy = a string of the other person's username
  //to add to CURRENT user's array (this is working)
  UserList.user.addUnique("Friends", buddy);
  UserList.user.saveEventually();
  
      //this is to add to another user's array (NOT WORKING)
      ParseQuery&lt;ParseUser&gt; query = ParseUser.getQuery();
      query.whereEqualTo("username", buddy);
      query.findInBackground(new FindCallback&lt;ParseUser&gt;() {
          public void done(List&lt;ParseUser&gt; objects, ParseException e) {
              if (e == null) {
                  // The query was successful.
                  for (ParseObject friend : objects) {
                      friend.addUnique("Friends",UserList.user.getUsername());
                      friend.saveEventually();
                  }
              } else {
                  // Something went wrong.
                  Log.d("Username", "Error: " + e.getMessage());
              }
          }
      });
  </code></pre>