The Easy way to make an Android
Graphical User Interface
Client - Server communication:
The Server will be loaded first, and will display it's IP and Port No. waiting for the Client to initiate the conversation.
The Client will send a start message first, containing It's IP.
After The initial handshaking, ALL TRANSACTIONS MUST BE IN PAIRS.
Ie. Each TRANSMIT (Put) must be followed by RECEIVE (Get)
The Server will send Commands to the Client to create or change the Widgets.
The Client will reply to each message with either
OK (Message 40) or
ERROR (Message 99).
It is the Servers responsibility to check if an error occured.
A typical sequence of commands is as follows:
1) Create a Template or Load it if it has been created before
2) Server issues a Wait (40) command to waoit for user action
3) The Server takes the necessary action based upon the Reply
4) Repeat from Step 2