guardianproject / haven

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors
https://guardianproject.github.io/haven/
GNU General Public License v3.0
6.58k stars 728 forks source link

Organise media storage by session #312

Closed archie94 closed 5 years ago

archie94 commented 6 years ago

Aims to close #28

n8fr8 commented 6 years ago

We already have an Event class as a "session" that has a start time. Each piece of media captured is an EventTrigger that is linked to an Event. Why not use this data to store and organize the media in storage? Why do we need a new concept of "session"?

archie94 commented 6 years ago

I wanted to make the folder name the time when the user starts monitoring the environment. The time registered in Event class is the time for the first alert message in the session. It may not be same as the time user clicks on "Start".

It makes sense though to keep the Event class mStartTime since it is what we show in our logs. Will make the required changes.

archie94 commented 5 years ago

Hey, have used Event start time to categorize media storage. Kindly have a look.