December 2015
Beginner
698 pages
15h 16m
English
Now, let's move on to ViewFragment. We will be using an Intent class to launch the built-in Google Maps app but with a pin to mark the location the photo was taken at.
The GPS location is already in the Photo object and we just need to do the following:
Double variablesIntent objectIntent classActivity passing in the Intent classOf course, all this takes place inside the class that handles the button clicks for SHOW MAP.
Add the highlighted code that we just discussed to handle what happens when the user clicks on the SHOW MAP button:
public View onCreateView(LayoutInflater ...
Read now
Unlock full access