O'Reilly logo

Mastering Android Application Development by Antonio Pachón Ruiz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, you learned how to add a map to our app. This required us to create a project on Google Developer Console and configure our app to access the API necessary. Once our app was completely configured, we moved on to adding the map to the view of our choice. We discussed handling a fragment within a fragment (MapFragment with our MyMapFragment). Although the single MapFragment could have been added individually by code, placing it within another fragment with a layout gives us the possibility of adding other UI widgets, such as FloatingActionButton, to the page if we need to. Finally, we made the map useful by displaying markers and information for locations, which we downloaded from Parse.

In the next chapter, you will learn ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required