Part 1: Designing Current Location Readout

The top half of the Pushpin app is simply a readout of the current location, as reported by the Location Sensor. It has fields to display most of the data that the Location Sensor provides. The colored boxes are special labels that start off pink and turn blue when a GPS lock is made. We will create this feature in the blocks that follow.

The Current Location section of the app is one large Table Arrangement component (found in the Layout palette). This Table Arrangement has three columns and seven rows. The first column is labels that don’t change—Latitude:, Longitude:, and so on. The third column contains labels that will change to show the current location data. Between them, the second column is ...

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.