O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required