-
Notifications
You must be signed in to change notification settings - Fork 91
Workflow example
Chain of events that occur on app loading without user interaction.
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.