title: Get another user's username from user id - Parse & Android
body: <p>I've been trying to make a simple instant messaging application for iOS and Android. Got it all done on iOS. I'm stuck on one thing on Android though.</p>
  
  <p>Whenever I send a message, it sends the message with the two objects <code>sender</code> and <code>other</code>. Sender is, well, the sender of the message, and other is the person receiving the message.</p>
  
  <p>On iOS, it gives <code>sender</code> the username of the currently logged in user. Same thing with <code>other</code>, but it gives it the username of the person receiving the message. On Android, currently, I can only get it to give <code>sender</code> the user<em>name</em> of the currently logged in user, and <code>other</code> is set to the user <em>id</em> of the person receiving the message. I want to get Android to set <code>other</code> to a username.</p>
  
  <p>I'm very novice with Java and Android app development. I know a lot more with Swift and iOS development. I'm pretty sure, though, that doing this would require a query.</p>
  
  <p>Can someone give me a pointer on how to do this? Thanks so much!</p>
  
  <p>Code:
  <a href="http://pastebin.com/2jP1DJEu" rel="nofollow">Pastebin #1</a>
  <a href="http://pastebin.com/V0d5y2R3" rel="nofollow">Pastebin #2</a>
  <em>StackOverflow won't let me put in another link. I can just paste it in a reply if someone wants to look at it.</em></p>
  
  <p>p.s. Sorry if this doesn't make too much sense. I don't really know how to describe it.</p>