What what wrong with the code? Nothing; the code was fine. It turns out the emulator went into some funny state where it was no longer responding to clicks. Killing the emulator, and restarting it, did the trick.
- Install Android Studio
- Clone the above code. Do it as follows. First, launch Android Studio. Then, under VCS (version control system), select Clone Repository. Choose git, and give the URL https://bitbucket.org/luca_de_alfaro/cmps121_class1 . Select the parent directory and directory where you want to clone the code, and click Clone. Then select to open the project you just cloned. You should now be able to see the project. Nice, eh? If you don't get this to work, don't worry; we will practice in class next time. But do try.