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

Example App: Up/Down Counter

This app is the same basic idea as the Clicker-Counter app from earlier in the chapter, but with some differences:

Image The current count will be displayed in a label.

Image The current count will be stored in a global variable.

Image Two buttons will be used: one to increase count and one to decrease it.

You can set it up something like Figure 4.14, with a label and two buttons.

Figure 4.14 The Up/Down Counter app, in the Designer. ...

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