Documente Academic
Documente Profesional
Documente Cultură
The goal of this assignment is to plot sensor values, their mean, and their variance over time. The user
will be able to choose which sensor he wants to view. Once the sensor type is chosen, the user will be
taken to a second activity that presents sensor data in two formats: (a) raw values, means, and standard
deviations over time, and (b) an animated image based on the current sensor reading.
30
using √𝐴2𝑥 + 𝐴2𝑦 + 𝐴2𝑧 . 20
10
• Because screen width is limited, once a line reaches
the right edge of the plot, existing values need to be 0
shifted one step to the left to fit in the new value. 0 2 4 6 8
• The plot will be updated in real-time, e.g., once every Time (x100 msec)
100 ms. Use a time step for which the plot looks nice.
• Keep a back button so that we can go back to the first Fig 2. An example Custom View. Use
activity and choose another sensor. appropriate X and Y-axis steps.
4. Second Activity – Animation Based on Sensor Value (using Animation)
5. Point Distribution
6. Plot shifts to the left when the lines reach the right 10
edge.
7. Back button brings the app to the first Activity, 10
and new sensors can be chosen.
8. Animation for accelerometer value. 10
Total: 100
6. Submission Instructions:
• Bring your laptop, source code, and the running app on your phone/tablet for grading.
Assignments must be demonstrated in person to get the points.
• Upload the code (entire Android project folder zipped) to Sakai before the deadline. Uploaded
codes will be used to check honor code violations only. Note that just uploading the code to Sakai
will not get you any points. You must demonstrate your assignment in person.
• Late policy – 50% points will be taken off for being up to one week late and 75% will be taken off
for being up to two weeks late. No points will be awarded after two weeks.