title: Using Sockets to send and receive data
body: <p>I am using sockets to connect my Android application (client) and a Java backend Server. From the client I would like to send two variables of data each time I communicate with the server.</p>
  
  <p>1) Some kind of message (Defined by the user through the interface)</p>
  
  <p>2) The language of the message (Defined by the user through the interface)</p>
  
  <p>How could I send these so that the server interprets each as a separate entity?</p>
  
  <p>Having read the data on the server side and made an appropriate conclusion, I would like to return a single message to the client. (I think I will be okay with this)</p>
  
  <p>So my two questions are how can I establish that the two Strings being sent (client to server) are unique on the client side and how can I separate these two Strings on the server side. (I was thinking an array of Strings, but could not establish if this was possible or appropriate.)</p>
  
  <p>I was going to post some code but I'm not sure how that would help.</p>