Book Image

App Inventor 2 Essentials

Book Image

App Inventor 2 Essentials

Overview of this book

App Inventor 2 will take you on a journey of mobile app development. We begin by introducing you to the functionalities of App Inventor and giving you an idea about the types of apps you can develop using it. We walk you through the technical set up so you can take advantage of the interactive development environment (live testing). You will get hands-on, practical experience building three different apps using tutorials. Along the way, you will learn computer science principles as well as tips to help you prepare for the creative process of building an app from scratch. By the end of the journey, you will learn how to package an app and deploy it to app markets. App Inventor 2 Essentials prepares you to amass a resource of skills, knowledge and experience to become a mobile app developer
Table of Contents (15 chapters)
App Inventor 2 Essentials
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Connecting the app to the Google Fusion Table


So far, we have created a Fusion Table and the GUI for the RSVP_Screen, and established our Google API credentials. Now it is time to create the code for RSVP_Screen.

Our goal

When the user clicks the Send RSVP button:

  1. The app takes the name from the NameTextBox, the selection from the NumGuestListPicker, and the contents of the ItemsBringingTextBox and inserts them as a single row in the appropriate column in the Fusion Table.

  2. Then the app clears textboxes and reset the Listpicker selection to 1.

We created the service-level credentials (the .p12 file and the service-level email address) so that our app is authorized to send or receive information from Google Fusion Tables. Next, we need to provide the FusiontablesControl component in our app with this information. We want to do this when a user opens the RSVP_Screen.

As shown in the following screenshot, once in the RSVP_Screen in the Designer, select the FusionTablesControl1 component under the...