Additional Exercises

1. This app has one big possible bug: What happens when two players press Send! with different words at about the same time? (This is the same thing that happens if someone playing skips someone else’s turn and plays early.)

2. Add some feedback to the user that lets the user know that the app is sending or updating. Be careful—you don’t want to say that it’s updating when it’s not.

3. How else could you use this functionality? Perhaps you could program an app that allows users to add numbers as part of creating an equation. Think of other possible uses for a group activity app that uses database storage.

4. This functionality also could be useful in conducting a poll. Several users with the app could submit an answer to ...

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.