600.250 -- Assignment 3 -- due Thursday, 2/16 -- 15 points
The purpose of this assignment is to get your feet wet experimenting
with Android application code. You will gain familiarity with various
application elements by modifying existing sample code. Please be
sure to do most of the assigned readings
beforehand.
When updating and launching new apps on an emulator, sometimes we need
to do a bit of extra work in order for the updates to take effect.
Often this can be accomplished by restarting the emulator, or
sometimes by also restarting Eclipse. However, read the Eclipse
topics in the
Troubleshooting
Tips for additional instructions on fixing these problems.
In this exercise you are expected to follow the
Android
notepad tutorial, making additional changes as directed
below after completing each tutorial exercise. You have reflection
questions to answer for each part as well, which should be done in
one document for the whole assignment. Submit this document as
*.txt or *.pdf, along with your final project file on Blackboard.
- Part 1 [3 points]: Download the code and do the first Android
tutorial exercise. Run the application in the emulator, using the
back or home buttons to leave the app and then return to it. Notice
that the note numbering restarts at 1 each time you return to the
application. Make one tiny change to the code so that the numbering
continues sequentially each time you return to the app once it has
been launched. (You may need to restart the emulator and/or eclipse
in order to kill the first app launch and see the change take
effect.) In your reflection, explain what you changed and where.
Comment on what happens to the note numbering if you quit and
restart the emulator. What has this exercise taught you about
activity lifecycles that you might not have fully understood
previously?
- Part 2 [3 points]: Do the second Android tutorial exercise. Run
the application to be sure you've tried all it's features. Now make
a tiny change to the project so that the button in the edit view
displays "Finish" instead of "Confirm". In your reflection, comment
on how the delete feature is activated and whether or not that is a
good design choice. How would you like it to be different and why?
- Part 3 [6 pts]: Do the third Android tutorial exercise. This time
you have a more significant change to make. Update the project so
that instead of only seeing the notes' titles in the list view, the
body of each is also displayed. Don't worry about making it look
nice at this point, just get it to work. You will need to update
some java code, and also add to a layout file. Add a reflection
comment to explain your changes.
- Part 4 [3 pts]: Do the fourth part of the tutorial to learn about
debugging in Eclipse (called "ExtraCredit" on the Android website).
Put your changes from all three parts into this final project
(including the edit from part 1 even though the numbering variable
is not used in the later editions) so that we can see your work.
Then export the entire project as a zip file
(File->Export->General->ArchiveFile). Submit this zip file and your
reflection document (*.txt or *.pdf) on Blackboard.