App Inventor: Fusion Tables and Persistent Data

This is a discussion on App Inventor: Fusion Tables and Persistent Data within the Droid Development forums, part of the Droid Hacking category; Hello, I have been learning to use Fusion Tables with App Inventor and have made pretty good headway, but I've been stuck on the same ...

+ Reply to Thread
Results 1 to 1 of 1

Thread: App Inventor: Fusion Tables and Persistent Data

  1. Droid Newbie
    RyanLhagen's Avatar
    Member #
    200741
    Join Date
    May 2011
    Posts
    1
    Phone
    Enter Current Phone Model Here
    #1

    App Inventor: Fusion Tables and Persistent Data

    Hello,
    I have been learning to use Fusion Tables with App Inventor and have made pretty good headway, but I've been stuck on the same issue for the last few days. The function I am working on is a counter.

    What I have achieved so far:
    When button is clicked:
    1) a global variable of 1 increment is added to the total count global variable
    2) The new total is inserted into a new row in my fusion table under the column "CigTotal" (it's a cigarette counter)
    3) The date and time of the event is inserted into that same row in the column "Date"

    The problem:
    When the app shuts down, I lose my total count and start over from zero. I want to be able to query the fusion table when the screen initializes to retrieve the latest total, use it to set the global variable total, and then continue to add to it. For reasons too long to go into (relating to the app's intended use), TinyDB and TinyWebDB would not be appropriate in this case. I'm assuming my answer lies somewhere in establishing a specific row/column which would be updated/overwritten, and drawn from during initialization. Basically, I need a way to tell the app to add to the value of a specific cell, which would be the same exact cell every time, and get the value of that same cell on initialization (whatever it may be at any given point in time). I attached a .png image of my screen set up, block set up and the fusion table result as of now.

    I would greatly appreciate any suggestions or advice you could offer for achieving this. Thanks, RyanLee
    Attached Thumbnails Attached Thumbnails App Inventor: Fusion Tables and Persistent Data-block-setup-small.png   App Inventor: Fusion Tables and Persistent Data-fusion-table-result-small.png   App Inventor: Fusion Tables and Persistent Data-screen-setup.png  
  2. Sponsor
    DF Advertising
    Join Date
    Nov 2008
    Location
    DroidForums.net
     
     
     
     

Sponsors

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Replies: 4
    Last Post: 01-09-2011, 12:43 PM
  2. App Inventor! Sweet got my access to Google App Inventor today!
    By DroidHoff in forum Droid Applications
    Replies: 9
    Last Post: 09-24-2010, 10:35 PM
  3. Replies: 9
    Last Post: 07-24-2010, 12:23 PM
  4. tide tables
    By xxwabbit in forum Droid Applications
    Replies: 6
    Last Post: 04-26-2010, 06:08 AM
  5. eBay Tables
    By silverx10 in forum Tech Issues, Bug Reports & Suggestions
    Replies: 0
    Last Post: 11-26-2009, 02:16 PM

Search tags for this page

android app inventor data table
,
app inventor fusion table
,

app inventor fusion table tutorial

,

app inventor fusion tables

,
app inventor fusion tables tutorial
,
app inventor persistent data
,
appinventor fusion tables
,
fusion table
,
fusion table app inventor
,

fusion tables app inventor

,
google fusion app inventor
,
google inventor fusion table
,
persistent data app inventor
,
tinydb app inventor
,
using app inventor fusion tables
Click on a term to search our site for related topics.