KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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. 1) Some kind of message (Defined by the user through the interface) 2) The language of the message (Defined by the user through the interface) How could I send these so that the server interprets each as a separate entity? 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) 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.) I was going to post some code but I'm not sure how that would help.
Tags (comma-separated)
Save Edits
Cancel