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

Basic Files

You can store data on a server somewhere and then pull it directly into your app. This lets you update the data without having to update the app. It can even happen every time the app launches and be invisible “magic” to your users.

Consider this simple app as an example. When the button is clicked, it fetches the file (specified in the blocks) and displays that file in the label. Figure 11.6 shows such a design, and Figure 11.7 shows the simple blocks that use the Web component to fetch the file from the Internet.

Image

Figure 11.6 Design of a demo app that fetches text from a website on the Internet.

Figure 11.7 Blocks that use a ...

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