Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 6 Find a Location with Google Maps

CHAPTER 6
FIND A LOCATION WITH GOOGLE MAPS

No one would be content with her Android programming knowledge unless she were able to put a map on the screen. There are a couple of ways to do this. The first is by invoking a build-in Intent on the Android device, similar to switching to the browser or using the phone dialer. In the next chapter we will present at length some of the built-in actions that are represented by symbolic constants that are part of the Intent class. Some of the built-in actions that use the same name, such as ACTION_VIEW, respond with different services depending on the uniform resource identifier (URI) that is submitted to it. For example, ACTION_VIEW, when supplied with http://and a web address, returns a web page. When supplied with the prefix geo: and geocodes, it returns a Google Map for the location. For now, let us look at a Google Map example.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial