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

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.