Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Workflow example

vreixo edited this page Sep 22, 2013 · 24 revisions

Application start

Chain of events that occur on app loading without user interaction.

Interface initialization

On app start, the UI for the MainFragment is created inflating the correspondent XML files and setting the listeners for the buttons, gestures and map. Before adding the listeners to the map, the map should be retrieved, this can fail because [Play Services are not correctly configured in the device] (http://developer.android.com/google/play-services/setup.html#ensure).

If this fails all UI interface is disabled with setEnabled method for all button views and disabling the options menu and an intent is send to Goolge Play services that will a display a dialog to update the services. Also in the blank a map a button will appear to make the update. When the app is resumed (presumably coming for a successful installation of Play Services) the map is retrieved again and if this is done OK all gets re-enabled. This way the app never is in a failure state. Play Services error

Map initialization

Connection of the Location Client

Set previously selected server

Restorage of saved state

Parameters setting

Request

Post-request result visualization

Clone this wiki locally