Create a Mobile GUI which acts as a client using Socket concepts as shown in the Figure1 below which provides following functionalities:
When the user enters a number and then clicks on “Add contact” button, the user should be prompted to enter the Name, when the user enters the name, the name and number should be sent to the Server.
The server will insert the name and number in a table named “contactList_yourId”.
If the use has not entered a number the appropriate error message should be displayed.
When the user enters a number and Clicks on the “Call” Button
The number should be sent to the server. The server searches the database and returns an appropriate response:
Eg. “Calling…. 9456633233” should be returned, if the number does not exist in the table (contactList_yourId”)
Eg.”Calling….(name)” should be returned, if the number and corresponding name exists in the table.
When the user clicks on the End button the Call Duration is displayed on the screen. The Call duration and Number is sent to the server.
The sever inserts the record into the table: “Call_Log_yourid”.
When the user clicks on the “C” button the screen of the mobile should be cleared.