Mobile: Plan for Thursday 12/3 (week 11) - and preparation

 

Teachers plan for the day

Prepare yourself by before lecture

 

- reading briefly about

Connecting to the Network: http://developer.android.com/training/basics/network-ops/connecting.html  

- try to look at Fidler (se below) information when your are on browsing or accessing webservices by WcfTestClient

Example with other Http Clients
- eventual reading briefly about

Example with other Http Clients
Be aware of the text on official Android site above says -
“We recommend using HttpURLConnection for applications targeted at Gingerbread and higher. For more discussion of this topic, see the blog post Android's HTTP Clients.”)
  -  http://loopj.com/android-async-http/
 
 -  http://stackoverflow.com/questions/4457492/how-do-i-use-the-simple-http-client-in-android

 

Extra useful tools for making interacting with webservices:

·         With WCF services (and ASMX) you can get the necessary data for SOAP call with WcfTestClient.exe you probably will find  here

-          "C: \ Program Files (x86) \ Microsoft Visual Studio 10.0 \ Common7 \ IDE \ WcfTestClient.exe"

·         Fidler is a usefull tool to show all what is sent and received on the http protocol: http://www.telerik.com/download/fiddler
You can use this tool for discover how to interact with a webservice, by using the service from other applications.

 

Ideas for small exercises:

External data to be used with web access

·        Webservices for retrieving data http://webservicedemo.datamatiker-skolen.dk/
Both with soap and REST call for JSON and XML

·        Webservice with geodata from Odense Municipality http://geodata.odense.dk/datatothepeople/ for retrieving JSON or XML data for fx parks and playgrounds.

·        Make an app, which can show a list of data retrieved from webservice – fx list of parks in Odense
When selecting an item show detail in another screen (activity)

·        Make a RSS reader to get news from your room (Se fronter for link)

·        Make a RSS reader to get news from http://dm-mobile.blogspot.dk/

 

 

More links about android

I have found this quite brilliant toturials that provides many concrete examples of use of various facilities:
http://www.vogella.com/tutorials/android.html 
http://www.vogella.com/tutorials/Android/article.html 
Fx Tutorial - more about ListView:    http://www.vogella.com/tutorials/AndroidListView/article.html 

Extra about parsing af XML og JSON

 

Slides and examples from the lecture is accessible here: http://bjoerks.net/klasser/Mobile_2015_Foraar/materials/
In this lecture produced: