O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

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

Part 2: Pinning a Location to Remember Later

We have completed the top half of the app, which shows the current location data and lets you view that location on a map. Next, we add the capability to save the current location. We’re using the word pin to describe saving a location for later.

Picking up from Part 1, we have some more components to add. Figure 10.24 shows the entire app in the Designer.

Image

Figure 10.24 The entire Pushpin app in the Designer. Note the empty label used as a spacer in the middle (highlighted in green).

Add a button with the text Pin This Location. Name it Pin_Location_Button. Below that is a spacer label, which has ...

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