CS 4518, C17 Project 3: Recognizing Activities with Android Sensors, (12/100 of course grade)
Due date: Thursday, February 9 by 11.59PM!!
Overview
The aim of this project is to get you familiar with Android Sensors, specifically
the activity recognition API. You will also explore SQLite databases
and Android Maps. You should do the project in your groups of up to 3 students.
Project Preparation
Step 1: Review Slides for Lectures 9 - 12
Step 2: Review the following tutorial on Activity Recognition
[ How to recognize user activity with activity recognition ]
Step 3: Get Activity Recognition Working
Download the code for the activity recognition tutorial above [ HERE ] . Download it, open it in Android Studio, compile it and get it to run on a real phone. Remember that real phones are required to run sensor code. Study the code.
Project Requirements
You are to develop an app that continously recognizes
4 of the user's activities (walking, running, in vehicle
and still). Whenever an activity is recognized, an
appropriate picture is displayed and text describing
the activity is displayed as well. Additionally,
whever the user is walking or running music from an MP3 is
played. Display the following images and play music from the
following mp3 file for the corresponding
activities:
[ In Vehicle ]
[ Running ]
[ Still ]
[ Walking ]
[ beat_02.mp3 ]
Create a local SQLite database to continuously store the start
time of each activity along with the activity type. E.g.
(12:24, walking).
Whenever a user switches to a new activity,
a toast pops up displaying how long the last
activity lasted. For instance, if the user was
walking and became still, a toast may pop up
announcing "You have just walked for 1 min, 36 seconds".
Display a map of your current location at the top of
the screen. The final app screen should look like
the screen below.
Submitting Your Work
Capture a video of your running program. Make sure to double-check
that everything works before submitting. Create a zip file containing
your code, 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 LastName1_LastName2_LastName3_hw3.zip,
listing all team members' last names.
Your submitted zip file for submission should contain the following folders/files:
\team.txt
\src\
\demo.mp4
\hw3.apk
The contents of team.txt should list team members as follows:
Username, Last Name, First Name
emmanuel, Agu, Emmanuel
msmith, Smith, Mary
Phone tested on: Google Nexus 5 Smartphone
mailto:emmanuel@cs.wpi.edu