WPI Computer Science Department

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

CS 528, Spring Semester Project 2: Exploring the Android Camera and Images, (9/100 of course grade)
Due date: Wednesday, February 24 before class time!!


Overview

The aim of this project is to get you familiar with Android apps that use the Android Camera and Images. You may complete this project either alone or in groups of up to 3 students. If you work alone, you will submit 1 project. If you work as part of a group, the GROUP will submit 1 project with all team members listed. You may discuss the projects with other classmates or on myWPI but each group (or student working alone) will submit their own code for the project.


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 or the phone's camera. So you will need to run this project on a real phone. If your phone is running Android 4.x, a good video to learn how to connect and use a real smartphone with Android Studio is located [ HERE ]

To learn how to run your programs on Android lollipop phones (Android 5.x), to learn how to install USB drivers on your home machine (and the zoolab) and how to run the examples in the textbook, go through the following tutorials



Step 2: Download code for Chapter 16 (CriminalIntent) 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 Chapter 16.



Step 3: Study the code for Chapter 16 of Android Nerd Ranch You will be required to extend and modify the code for chapter 16 for this project. Read chapter 16 and also study the complete code. Run the code for chapter 16 on your phone and make sure you understand the code.



Step 4: 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 "SEND CRIME REPORT" button as shown below. Taking images 2,3 and 4 should store those images in the positions below the "SEND CRIME REPORT" 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 "SEND CRIME REPORT" 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 5: 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 If you worked alone, name your zip file according to the convention FirstName_lastName_hw2.zip. If the submission is for a group, then list all last names in the submission using the convention LastName1_LastName2_LastName3.zip.


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

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

mailto:emmanuel@cs.wpi.edu