Exercise: Pushpin

The Pushpin app does two things. First, it provides a readout of current location data, including latitude, longitude, and address. You can use it just to figure out where you are. The second thing it does is remember a location. Wherever you are, you can touch the Pin button, and it will pin your current location (which just means that it saves it). You can view the current location or the pinned location in a map application. Figure 10.15 shows the finished app.

Image

Figure 10.15 The completed Pushpin app in use.

This app has a lot of components, but they’re not difficult. The GPS readout has numerous parts, all of which are ...

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.