

For this app, you want to set the ListPicker' s Elements property to the destinations list you just created. If you set Elements to a list, the items in the list will appear in the ListPicker. The ListPicker component displays a list of items when the user clicks a button. For Part I, you'll just open Maps and tell it to invoke a search for the chosen destination When the user chooses a destination from the ListPicker, the Maps application is launched to show a map of that destination.When the app begins, the app loads the destinations into the ListPicker component so the user can choose.The blocks will look like this: Add behaviors to the components Open the blocks editor and create a variable with the list of destinations for the MapTour. This property must be set in the Blocks Editor because it will change based on whether the user chooses to visit the Louvre, the Eiffel Tower, or the Notre Dame. In the Blocks Editor, you'll set one more property, DataUri, which will allow you to launch Maps with a particular map being displayed.

With these values set, you'll be able to launch the Maps application. So, to set-up the ActivityStarter to launch the Maps application, set the following ActivityStarter properties in the Component Designer: Property
#Golf it editor tutorial how to
By copying the sample protocol information provided here, you can easily learn how to launch apps like Maps from the apps you are creating.
#Golf it editor tutorial android
The user can then hit the back button to return to your app and choose a different destination.ĪctivityStarter is a relatively low-level component in that you'll need to set some properties of the component with information familiar to a Java Android SDK programmer, but foreign to the rest of the 99.999% people in the world. You'll build MapTour so that the Maps application is launched to show particular maps based on the user's choice. When another app is launched from your app, the user can click the back button to get back to your app. Setting the properties of ActivityStarterĪctivityStarter is a component that lets you launch any Android app- the browser, Maps, even another one of your own apps. Set the text of that button by setting the Text property of ListPicker1 to "Choose Destination".

The ListPicker component has an associated button- when the user clicks it, the choices are listed. For it to appear, you'll also need to set this as the Picture property of Image1. Launches the maps app when a destination is chosenĭownload the file parismap.png onto your computer, then choose Add in the Media section to load it into your project. Show a static image of Paris map on screen Drag each component from the Palette into the Viewer and name it as specified: The components listed below were used to create this designer window. The design view should look like this when you're done: The user interface for MapTour is simple: you'll have a single ListPicker component and an ActivityStarter (non-visible) component.
#Golf it editor tutorial download
MapTour What you're building Download Refined Version (Book Chapter PDF) For tutorials about App Inventor 2, go to the App Inventor 2 Tutorials.

