
Android Application Development Cookbook
By :

With the constantly changing nature of Google APIs, your users are likely to attempt to use your application, but not be able to because their files are out of date. In the previous example, we just show a Toast, but we can do better. We can use the GoogleApiAvailability
library to display a dialog to help the user resolve the problem.
We'll continue with the previous recipe and add code to the onConnectionFailed()
callback. We'll use the error result to display additional information to the user to resolve their problem.
This recipe will continue from the previous recipe, How to get the last location. If you are loading the project from the downloaded source files, it is called HandleGoogleAPIError
.
Since we are continuing from the previous recipe, we'll only cover the steps necessary to update the previous code. Open ActivityMain.java
and follow these steps:
Change the font size
Change margin width
Change background colour