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 minimum SDK to 19 and copy in SingleFragmentActivity.java 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 26 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 UI. If you are using an emulator, though, read this next section so that you can test all the code you are about to write. If you are not, feel free to skip ahead to the section called Building Out Locatr.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.33.41