Flashcards
Web Development II
Cards in this deck (10)
- 1Social Networking Service What is it?An online service, platform, or site that
facilitates the social relations among
people who can share interests, activities,
background or real-life connections. - 2Social Networking Service Components- A representation of each user (a profile)
- His/her social links
- Web-based services, e.g. e-mail and
instant messaging - 3Social Networking Service What I need to build one?1) A server (e.g. - SQL)
2) An API to add data to that server(e.g. PHP)
3) Code an app to request through the API and save the action to the DB
4) Other users can access info on DB through API - 4ASPActive Server Pages
Microsoft's first server-side script engine for dynamically generated web pages. - 5HTTP POST- returns data as a
string
- This is one of the most commonly used methods for submitting data to a web server
- allows posting messages to bulletin boards, mailing lists and newsgroups
- responses are not cacheable unless
they contain appropriate headers - 6AndroidListClientA listActivity in Java
- The server is a simple PHP script that supports two commands:
- getAnimalList
- getAnimalSound - 7getAnimalList- Parameters: none
- Returns: a comma separated list of animals
// return a list of animals
if($command == "getAnimalList") {
echo "bird,dog,cat,cow,sheep"; - 8getAnimalSound- Parameters: none
- Returns: string representation of animal sound
// get the animal parameter and send the
right response
} else if($command == "getAnimalSound") { // get the animal parameter and send the
right response
$animal = $_REQUEST['animal'];
if($animal == "bird") {
echo "Chirp, Chirp"; ... - 9ServerInterface- To initialise communication with the server
- To make an HTTP request to the server
- To send parameters as POST data
- To get a response and return it as a string - 10Before running the code...- make sure to give the app permission to access the INTERNET.
Information
- Description
- Masters of Science Mobile App Flashcards on Web Development II, created by Nathan Hunsdale on 23/05/2014.
- Created by
- Nathan Hunsdale
- Views
- 18
- Rating