I am trying to create a J2ME (java micro-edition) code program using the http connectivity interface that has the following functions: -
1. It has two threads, one for communication (receiving and sending) and the other (main) thread will be for communication with the user.
[login to view URL] main thread will make use of three midlet forms. The first form will ask for web page address and a keyword, the third form will display the number of times the keyword appear on the web page, the second will be intermediate form displaying moving gauge while the reading takes place.
[login to view URL] second thread needs to perform http connectivity to the WWW, connect to the appropriate web page and read its content, count the occurrences of the keyword and pass this information to the first thread.
[login to view URL] gauge component to show the user that the program is busy reading from the server.