Page 315 -
P. 315
mobile app development
Assume that you have a CGI script called cgi-bin/
1
generate_data.py, which, when called, requests the data
for a named athlete from the server.
Provide the code (which includes a call to thensend_to_
server() function) to implement this functionality:
Additionally, write the code required to display the list of times returned from the server within an Android
2 dialog.
Hints: Use the dialogSetItems() method from the Android API to add a list of items to a dialog. Also,
remember that the data arriving over the Internet will be formatted using JSON.
you are here 4 279