Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
App Inventor 2 Essentials

You're reading from  App Inventor 2 Essentials

Product type Book
Published in Apr 2016
Publisher
ISBN-13 9781785281105
Pages 248 pages
Edition 1st Edition
Languages

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}