Помогите реализовать .
Добавлено: 21 окт 2013, 14:27
Всем добрый день ,пожалуйста помогите реализовать даную задачу
Main types for object to be implemented in the program
Main: Should be an Android activity with
1. a single button to run the requests SIMULTANEOUSLY
2. one textview fore each request to be uptated as soon as the processing of corresponding request finishes.
Request : This is a type of object, which grabs some data from web resource through a URL. It should take the needed URL as a parameter ,get the contents of that URL (assume a webpage), hold the response and prepare an output for the main program.
Functionality
The main should define and run 3 requests SIMULTANEOUSLY, each request is defined below;
1) TrueCaller10thLetterRequest:
Grab http://www.truecaller.com content from the web
Hold the web page content as a String and make it accessible from the Main
Process the web page content : Find the 10th letter in the web page text and report it back to the Main program via callback
2) TrueCallerEvery10thLetterRequest:
Grab http://www.truecaller.com content from the web
Hold the web page content as a String and make it accessible from the Main
Process the web page content: Find every 10th letter (i.e: 10th , 20th, 30 th etc. ) in the web page text and report it back to the Main program via callback. This callback should bring an appropriate data structure .
Main types for object to be implemented in the program
Main: Should be an Android activity with
1. a single button to run the requests SIMULTANEOUSLY
2. one textview fore each request to be uptated as soon as the processing of corresponding request finishes.
Request : This is a type of object, which grabs some data from web resource through a URL. It should take the needed URL as a parameter ,get the contents of that URL (assume a webpage), hold the response and prepare an output for the main program.
Functionality
The main should define and run 3 requests SIMULTANEOUSLY, each request is defined below;
1) TrueCaller10thLetterRequest:
Grab http://www.truecaller.com content from the web
Hold the web page content as a String and make it accessible from the Main
Process the web page content : Find the 10th letter in the web page text and report it back to the Main program via callback
2) TrueCallerEvery10thLetterRequest:
Grab http://www.truecaller.com content from the web
Hold the web page content as a String and make it accessible from the Main
Process the web page content: Find every 10th letter (i.e: 10th , 20th, 30 th etc. ) in the web page text and report it back to the Main program via callback. This callback should bring an appropriate data structure .