Mobile Development: Plan for Week 08Week 06 - Week 09

Mobile Development: Plan for Week 08Week 06 - Week 09

Week 08 - version: 2016-02-23Mobile development - Spring 2016Page 1 of 2

Mobile Development: Plan for week 08week 06 - week 09

Goal for this week

  • You should be able to communicate with a website/webservice in an acynchronous way.
  • You have some knowledge about using user threads in java and special knowledge about running some part in background using AsyncTask to keep liveness for user in the app.
  • You have some knowledge about threads and synchronizing in java.

Preparation before Tuesday 23th February

  • Tutorial - Connecting to the Network:
    Reference – HttpURLConnection class:
  • Read briefly about AsyncTask
    Code Overtones Android AsyncTask template
    Android Threads, Handlers and AsyncTask - Tutorial (AsyncTask)
  • Read briefly about parsing XML og JSON
    XmlPullParser Android Developers
    Android XML Parsing Tutorial
    JSON - Android Developers
    Android JSON Tutorial: Create and Parse JSON data
  • Eventual study example using the HttpClient (Be aware of there is discussion about only HttpURLConnection is supported by the Android team)
    still the example gives you some ideas using Asynchronous Http Client:

More links about android threads / asynchronous methods

  • Processes and Threads Android Developers
  • Code Overtones Android AsyncTask template
  • Android Threads, Handlers and AsyncTask - Tutorial (AsyncTask)
  • Android Threads, Handlers and AsyncTask - Tutorial (Handlers)
  • Handler Android Developers
  • Eventual study example using the HttpClient (Be aware of there is discussion about only HttpURLConnection is supported by the Android team)
    still the example gives you some ideas using Asynchronous Http Client:

Teachers plan for Tuesday 23th February (9:00-12:00)

  • Follow up on the weeks of study (adjusting plan for week together)
  • Accessing webservice for external data - asynchronous
    Example using asynchronous access by running the call in background.
    Android_HttpGetPostRequest_AssertXmlReq_Asynk_20150304.zip (Last call is now done asynchronous by using AsyncTask – general async solution)
    Briefly about JSON and XML format
  • Java threads in general
    TraadEksempelMedSync.zip
  • Students presentation of their APPS
  • 11:15 Jesper from Geo Fyn will talk about webservices they can offer and possible projects to cooperate with Geo Fyn.

Preparation before Friday 26th February

  • Make one or to apps that can retrieve data from webservice or send data to webservice for update
    Ideas for small apps/exercises using asynchronous access.
  • External data to be used with web access
  • Webservices for retrieving data
    Both with soap and REST call for JSON and XML
  • Webservices from Geo Fyn:

    Examples
    Playground in Svendborg:
    Parks in Svendborg:
  • Make a RSS reader to get news from:
    -
    -
    -
  • More will follow after Geo Fyn has made presentation Tuesday

Teachers plan for Friday 26th February – 8:30-10:00

  • Follow up on the weeks of study (adjusting plan for week together)

Bjørk Boye Busch – – – #DmuMobile on Twitter – - Bjørk’s YouTube playlists