KeyMapper icon indicating copy to clipboard operation
KeyMapper copied to clipboard

Action to open the camera app and then take a picture (probably impossible)

Open sds100 opened this issue 4 years ago • 4 comments

Developer TODO (don't remove)

  • [ ] create new branch. put issue number at start of name
  • [ ] update documentation
  • [ ] squash and merge
  • [ ] delete branch

sds100 avatar Oct 04 '21 07:10 sds100

I think for this, there should be two types of actions. One that automatically takes a picture, no interaction required, and one that opens the intent/activity (theres a word for it but i forget), not the camera app so the user can take the picture themself. This would be different than launching the camera app because the camera window would appear inside of the KeyMapper app itself, and the app can tell the system where to write the image to.

GL513 avatar Oct 11 '21 13:10 GL513

@brianmichaelwendt so you want the action to open the camera app and then immediately take the picture? I'm not sure there is a standardised API to do this so you might be better off creating a key map with the "open app" action and then the "tap screen" action that taps the shutter button? you will need to change the "delay before next action" option.

sds100 avatar Oct 12 '21 11:10 sds100

Yes that is what I was trying to acheive. And thank you for the idea, because this does work (as long as the camera app is not open or is open and in the "take picture" view). I would still love to see some working examples of sending intents to other apps though...

Brian


From: Seth Schroeder @.> Sent: Tuesday, October 12, 2021 7:45 AM To: sds100/KeyMapper @.> Cc: brianmichaelwendt @.>; Mention @.> Subject: Re: [sds100/KeyMapper] Action to take a picture (#790)

@brianmichaelwendthttps://github.com/brianmichaelwendt so you want the action to open the camera app and then immediately take the picture? I'm not sure there is a standardised API to do this so you might be better off creating a key map with the "open app" action and then the "tap screen" action that taps the shutter button? you will need to change the "delay before next action" option.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/sds100/KeyMapper/issues/790#issuecomment-940934197, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV3T73OVMERH54MDFBRL3ADUGQNVPANCNFSM5FIWGXPQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

brianmichaelwendt avatar Oct 13 '21 03:10 brianmichaelwendt

Yeah, I will document that. I'm very busy right now so I don't know when I can work on this project. 🙂

sds100 avatar Oct 14 '21 13:10 sds100