WPI Computer Science Department

Computer Science Department
------------------------------------------

CS 403x, D Term 2015 Project 2: Exploring Fragments, the Android Camera and Images, (8/100 of course grade)
Due date: Thursday, April 2, 2015 11.59PM!!


Overview

The aim of this project is to get you familiar with Android apps that use fragments, the Android Camera and Images. You should complete the project your team of 3 students. You may discuss the projects with other classmates or on myWPI but each group will submit their own code for the project.


IMPORTANT: Please connect the Nexus 5 phones using WiFi. Do NOT try to connect it to a cellphone carrier (e.g. Sprint, Verizon, etc)


Project Requirements

Complete the following steps and submit the project at the end.



Step 1: Learn how to run your apps on a real phone Thus far you have run all your programs on the Android Studio Emulator. The emulator is not able to run programs requiring sensors. So you will need to run this project on a real phone. A good video to learn how to connect and use a real smartphone with Android Studio is located [ HERE ]



Step 2: Download code for Chapters 19 and 20 The following zip file available [ Here ] contains all the working programs from the Android Nerd Ranch book. Download it, unzip it and find the complete solution for Chapters 19 and 20.



Step 3: Convert code for Chapters 19 and 20 to Android Studio The Android Nerd Ranch code was written using the Eclipse IDE. It's fairly easy to import Eclipse projects into Android Studio and use them. Here's a good video on how to import Android Eclipse projects [ HERE ]



Step 4: Study the code for Chapters 19 and 20 of Android Nerd Ranch You will be required to extend and modify the code for chapters 19 and 20 for this project. Read chapters 19 and 20 and also study the complete code. Run the code for both chapters on your phone and make sure you understand the code.



Step 5: Make the following Changes to the code:

  1. Currently, the app can only store one image in the top left corner. Taking a second image replaces the first image with the second. Make it possible to store more images below the "DATE" button as shown below. Taking images 2,3 and 4 should store those images in the positions below the DATE button as shown.

  2. If 4 images are already displayed, taking a 5th image should replace image 1 (in top left corner). Taking a 6th image replaces image 2 (leftmost image below the "DATE" button) and so on.

  3. Add a "DELETE ALL IMAGES" button. Pressing this button should delete all previously displayed images and no images should be displayed thereafter.



Step 6: Record session of running code on real phone You will submit both your APK (compliled Android program) and a video of you running the app on your phone. You will need to learn how to record a session of you running the app on your phone. Here's a good video on how to do Android screen capture [ Here ]


Submitting Your Work

Make sure to double-check that everything works before submitting. Create a zip file containing your APK and MP4 Video (Captured session) files. Submit your zip file using web-based turnin. Do not email me your program or submit it via dropbox.

Before submitting MAKE SURE YOUR PROJECT'S APK FILE RUNS ON YOUR ANDROID PHONE Name your zip file according to the convention using the last names of all team members LastName1_LastName2_LastName3.zip.


[Feedback] [Search Our Web] [Help & Index]

[Return to the WPI Homepage] [Return to CS Homepage]

mailto:emmanuel@cs.wpi.edu