I. Assessment Requirements
You should design, code and demonstrate a J2ME program (a program capable of running on mobile telephones) according to the specification given in the next section.
II. Assessment Scenario/Problem
prepare a J2ME (java micro-edition) code program using the http connectivity interface as described in the java specification (Generic Connectivity Framework) to deliver the following functionality:
1) Create two threads – one for communication (receiving and sending) and other (main) thread will be for interaction with the user. You will require additional timer object for added interactivity – for ex gauge.
2) Main thread will make use of three midlet forms. The first form will ask for file name and separately for a delimiter which will separate the words in the text file document, third form will display the number of words which appear in the file as separated by the delimiter specified, while the second form will be intermediate form displaying moving gauge during the reading takes place.
3) Second thread must perform file reading, read its content, count the occurrences of the words according to the delimiter given and pass this information to first thread to display (add additional sleep between the lines of the reading the file program if the reading is too fast). The file could be a file on the mobile phone of your choice or the html file retrieved using http connection to the web server.
4) Use gauge component to show user that the program is busy reading from the server.
prepare a concise explanation of 3-5 pages.