Adding the ActivityStarter

Our app will feature a map, because anytime you host an event, guests will need to know the address and it is helpful to provide the location via GPS. For the EventApp app to launch Google Maps when a user presses the Map button, we will use the ActivityStarter Component. Go to the Designer, and in the Connectivity Palette, drag ActivityStarter onto the Viewer and notice how it drops down below the Viewer (see the following screenshot) unlike all of the other components we have used so far. This is because ActivityStarter is a nonvisible component; the user won't see it on the screen or even know that they have launched it:

For the app to launch the correct map, you will need to input some instructions in the Properties ...

Get App Inventor 2 Essentials 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.