Android Programming: The Big Nerd Ranch Guide, 2nd Edition
by Bill Phillips, Chris Stewart, Brian Hardy, Kristin Marsicano
Creating Locatr
Now to get started. In Android Studio, create a new project called Locatr. Create an empty activity and name it LocatrActivity. As you have for your other apps, set your minSdkVersion to 16 and copy in SingleFragmentActivity and activity_fragment.xml.
You will also want some additional code from PhotoGallery. You will be querying Flickr again, so having your old query code will be handy. Open up your PhotoGallery solution (anything after Chapter 24 will do), select FlickrFetchr.java and GalleryItem.java, and right-click to copy them. Then paste them into your Java code area in Locatr.
In a minute, you will get started on building out your user interface. If you are using an emulator, though, read this next section ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access