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 ...
-
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
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By kook in forum Team Fusion
Replies: 4
Last Post: 01-09-2011, 12:43 PM
-
By DroidHoff in forum Droid Applications
Replies: 9
Last Post: 09-24-2010, 10:35 PM
-
By WoZzY in forum Droid Development
Replies: 9
Last Post: 07-24-2010, 12:23 PM
-
By xxwabbit in forum Droid Applications
Replies: 6
Last Post: 04-26-2010, 06:08 AM
-
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.