I have a flow, which I use for *something* when I use any of my camera apps. Currently I use trigger to detect when I open the app but I also don't want it to trigger when I use the apps editing functions.
Some apps open the editing functions in different activity which allows my flow to not to trigger. However, some apps open those within same activity and I cannot differentiate between editing and taking pictures.
Would it be possible to universally detect by a trigger or condition when an app is actually using the camera? If not, would that be possible to implement such feature in automagic?
Detect camera usage
Moderator: Martin
Re: Detect camera usage
I don't know about a way to detect camera usage in general. On a rooted device you could check if the log of your device prints something special when the camera is used. If this is the case, you could execute a flow with trigger Command Output and the appropriate filter.
You could also use an action Take Picture which usually fails when the camera is already in use by another app. I'm not sure how good this mechanism works since preparing the cam and taking a picture can take several seconds.
You could also use an action Take Picture which usually fails when the camera is already in use by another app. I'm not sure how good this mechanism works since preparing the cam and taking a picture can take several seconds.
Re: Detect camera usage
I can't find anything useful in the log. Or might be I just missed it. Multiple times..
Can anyone confirm this with gingerbread?
Can anyone confirm this with gingerbread?