Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps
by Derek Walter, Mark Sherman
A Few TinyDB Details
A note on TinyDB: There’s only one. Adding more than one TinyDB component does nothing. More components, with different names, all attach to the same database in Android, so more than one is redundant and unnecessary. If you store a value with one TinyDB, all the others will be able to retrieve it. Just use a single TinyDB component per app. If you want to use multiple TinyDB components to organize your data, then use different tags or tag prefixes (for example, use Set1_name and Set2_name as the tags).
Each app has a separate TinyDB storage location on the device, so apps will never cross data. It is impossible for one app to read the data of another’s TinyDB. However, if you are running in Live Mode with the Companion app, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access