![]() The blocks to make these actions work are here: We use AddLocationButton to add a new address, CancelButton to cancel the process of adding, and LocationHelpButton to display what type of addresses can be entered. If no data, then we just use an empty list. In the procedure, we also check our database to find out if there are any stored addresses. Some of these settings could have been done from the design editor, but for demo purpose and clarification, we are using a procedure. The procedure sets up the initial state of some of the components. We now create a procedure that can be invoked when the app is started (initialized). listLocations – a variable that can be used to store and manipulate list of addresses.tagAddress – a variable that is a constant and will be used, as a tag, for storing and retrieving data from our database.TinyDb, ActivityStarter, LocationSensor, Notifier) that are used in the app. It also shows you the non-visible components (e.g. The figure below shows how the components are arranged in the design editor. We will be working toward the design shown in figure blow: TinyDB – saving data into a persistent database.ActivityStarter – used to start-up Google Maps for current or predefined address.LocationSensor – detecting current location for displaying on Google Maps.ListPicker – adding items to lists, saving list data.List manipulation – creating lists, appending items to lists.For basic and intermediate tutorials, click here. This tutorial assumes you have completed the basic tutorials of App Inventor. It will also show you how view your current location on the Google Map. This tutorial shows how you can develop an app that allows you to record list of addresses and view the address on the Google Maps.
0 Comments
Leave a Reply. |