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

TinyDB

As previously mentioned, two components are used to manage databases: TinyDB and TinyWebDB. TinyDB is used to store persistent data on the Android device itself. This is important for apps when the user has no need to share the data with another person or device (and the data presents no security risk).

Both TinyDB and TinyWebDB are found in the Blocks Editor with the other storage components (see Figure 11.1).

Image

Figure 11.1 Storage components in the Designer.

With TinyDB, the data is stored directly on the device and is available for your app. For example, if you program an app to provide an automatic response to a button press or some ...

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