renyuneyun / CamCov

Camera cover / overlay / background app on Android
GNU General Public License v3.0
28 stars 8 forks source link

Automatic activation when away from home #5

Open LuccoJ opened 8 years ago

LuccoJ commented 8 years ago

it would be nice if CamCov automatically detected that the user is outside and could activate the transparency based on that.

I can think of three possible ways to approximate that, in order or presumed difficulty:

renyuneyun commented 8 years ago

Thanks for your idea. I've never thought about that before.

To be honest, I think this needs to be considered more seriously because cameras use lots of CPU. An automatic opening may drains battery quite quickly...

Currently you can use an accessible app to send a broadcast with action ryey.camcov.action.TOGGLE_OVERLAY to toggle the event (see INTEROPERABILITY.md). Maybe you can try FLock (yes, it's also an app of mine :)

It's a little hard to determine how exactly the threshold is for the 1st condition.

As for the 2nd and 3rd event, I'm going to write an app (well, actually it has been a few months since I first started it, but I laid it aside then) which can be used to determine if the 2nd and/or 3rd event is happening. And I'm planning to make it possible to send a broadcast (so that it can also interoperate with CamCov) when that happens.

renyuneyun commented 7 years ago

I wrote another app designed to be used for event listening and action triggering: Easer.

Starting from v0.3.0, Easer is capable to listen to "in" and "not in" events of cell location. You can create two events in easer, one for "in someplace" and one for "not in someplace", and load profiles to send related broadcasts (see INTEROPERABILITY), e.g. ryey.camcov.action.START_OVERLAY to activate (and/or deactivate CamCov).

Finally f-droid updates the repo, so you can download/install Easer there (or through its web interface).

leprecaun405 commented 5 years ago

It would be nice if they had sensors to automate the app I think it would be more functional tht way

leprecaun405 commented 5 years ago

https://github.com/renyuneyun/CamCov/issues/5#issuecomment-308238122