CS4518 Optional Project 4: Activity Recognitions solution

$29.99

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (3 votes)

1 Project Overview
4 In this project, you will be developing an Android App that performs different tasks automatically based on user
5 activities. The aim of this project is to get you familiar with Android sensors, in the context of Google activity
6 recognition API, as well as SQLite database, Maps and Media Player.
7 • This project is due by 10:00 pm on Dec. 8 and accounts for 10% of course scores.
8 • Each student must complete this project individually. However, I do encourage you to share ideas, advice
9 and resources with each other. Please contact me if you have questions about what constitutes appropriate
10 collaboration.
11 • If you have any questions regarding this project, please post it in the forum with the part you have questions
12 with (using line numbers to the left).
13 2 Project Preparations
14 I have included the starter code “ActivityRecognization” along with some resources you might find useful in com15 pleting the project.
16 • A slide deck that compiles basic information related to project requirements.
17 • An online tutorial about activity recognition: http://code.tutsplus.com/tutorials/how-to-recognize-user-activity18 with-activity-recognition–cms-25851
19 • An online tutorial about Android music player:https://github.com/SueSmith/android-music-player
20 • A mp3 file.
21 3 Project Requirements
22 3.1 Saving data into SQLite (40 points)
23 • (20 points) Currently, recognized user activities are simply printed out as console log. Your tasks are to
24 design a SQLite database schema, and save the activity data into the local SQLite database. Write down your
25 SQLite database schema.
26 • (20 points) Then you should implement a “Summary” button that displays a summary of all user activities
27 in the past 24 hours using data from SQLite database. The summary should at least include the time span,
28 i.e. start time and end time for the 24 hours window, the activity name, and the corresponding activity time.
29 Take a screenshot of the activity summary.
30 3.2 Plotting user path in the Map (40 points)
31 • (20 points) Next, when your Android app detects a user switches to walking or running activities, your task
32 is to first display a map of user’s current location. Take a screenshot of the displayed map.
33 • (20 points) Then you should add a thin red line starting user’s current location along user’s movement path.
34 When the user switches to activities other than walking and running, you should save the coordinates of
35 starting and finishing locations into the local SQLite database. Take a screenshot of the map with the thin red
36 line.
37 • (10 points) Finally, you should implement a new screen activity that replaces the map. The new screen activity
38 should at least display the basic information of a user’s current activity, e.g., starting time and activity name.
39 Take a screenshot of the new screen activity.
Tian Guo, WPI Page 1 of 2
40 3.3 Playing music (10 points)
41 • (10 points) Last, let us add some music to the app. Your task is to implement a “music” button that once
42 clicked, plays a mp3 music file locally. A sample mp3 file is provided, but you are welcome to use any mp3
43 files of your choices.
44 4 Project Submission
45 • Please make sure you have documented your implementation adequately with in-line comments.
46 • Create a zip file, named cs4518Project4.zip, from a directory that contains your modified Android
47 project code, the screenshot images, and your writeup. Submit cs4518Project4.zip through Instruct
Assist1
48 .
1https://ia.wpi.edu/cs4518/files.php
Tian Guo, WPI Page 2 of 2