video capture intent - Tasker Tips & Tricks

hi everyone,
I have the following question: I'm trying to create an intent to launch the camera in video mode and start capturing. The launching is ok, but the capturing not. Maybe somebody could help me with an intent for it.
I'm using org.cyanogenmod.snap
note: I tried simulating camera button, but this didn't work.
I don't want to use any plugin, such as autoinput.
thanks in advance

Stock Camera doesn't have record intent, the only option you will have is to use autoinput or key event to start recording.

CrashOverride93 said:
Stock Camera doesn't have record intent, the only option you will have is to use autoinput or key event to start recording.
Click to expand...
Click to collapse
thanks
if not using intent, but key event, could you please recommend a task? I'm just looking for a way to do this without any plugin.

Well, as every phone (screen) and also camera app are different from each one, you will have to find your specific x/y coordinates. But the command is 'input tap xxx.x yyy.y', and don't forget to select use root.
Did you lunch the camera activity with 'android.media.action.VIDEO_CAPTURE'? (just a question for my info)
-----------------------------------------
I forgot to mention that there are phones that its camera app doesn't have direct play/record button, so will be necessary to follow different steps.
And another way you can accomplish that is by using key events.
http://thecodeartist.blogspot.com.es/2011/03/simulating-keyevents-on-android-device.html

CrashOverride93 said:
Well, as every phone (screen) and also camera app are different from each one, you will have to find your specific x/y coordinates. But the command is 'input tap xxx.x yyy.y', and don't forget to select use root.
Did you lunch the camera activity with 'android.media.action.VIDEO_CAPTURE'? (just a question for my info)
-----------------------------------------
I forgot to mention that there are phones that its camera app doesn't have direct play/record button, so will be necessary to follow different steps.
And another way you can accomplish that is by using key events.
http://thecodeartist.blogspot.com.es/2011/03/simulating-keyevents-on-android-device.html
Click to expand...
Click to collapse
nice suggestion, thanks!
For launching, I use VIDEO_CAMERA
It seems to be working now with simulating camera button press.

Related

Camera Button: Can I change what it does?

Hi, is it possible to change what happens when I press the camera button on my Xperia T? I would like it to start recording audio, so I can quickly and effortlessly start recording, rather then having to turn the screen on, navigate to the app, open, then press record.
Thanks
Yes,with a Xposed module called Xposed Additions.
https://play.google.com/store/apps/details?id=com.spazedog.xposed.additionsgb
moliverac8 said:
Yes,with a Xposed module called Xposed Additions.
https://play.google.com/store/apps/details?id=com.spazedog.xposed.additionsgb
Click to expand...
Click to collapse
I installed it but there's something wrong, when I run the app it says "Missing System Service: The service is not enabled. If you have just updated the module please reboot. Otherwise make sure xposedbridge is installed and that this module is enabled."
I do have a rooted phone.
You are new in this read something about xposed framework thats the only way to do that easier
OK I sorted out that problem, the app works fine now.
Does anyone know how to use this app? How do I set it to record audio on pressing the camera button?
Astralogic said:
OK I sorted out that problem, the app works fine now.
Does anyone know how to use this app? How do I set it to record audio on pressing the camera button?
Click to expand...
Click to collapse
You can't set it to record audio directly, as far as I know (never saw that in the options), but theoretically you should be able to set it to be able to open an app when pressing the camera button. You need to set conditions (while screen off or on), and then reasign the button to the function you want. It's not a complicated app.
Antiga Prime said:
You can't set it to record audio directly, as far as I know (never saw that in the options), but theoretically you should be able to set it to be able to open an app when pressing the camera button. You need to set conditions (while screen off or on), and then reasign the button to the function you want. It's not a complicated app.
Click to expand...
Click to collapse
I've been trying to find a tutorial or guide for this app but I can't. Either I'm stupid or it's not as easy as it seems.
Could someone help me out? I just want my audio recording app to launch when I press the camera button.
Astralogic said:
I've been trying to find a tutorial or guide for this app but I can't. Either I'm stupid or it's not as easy as it seems.
Could someone help me out? I just want my audio recording app to launch when I press the camera button.
Click to expand...
Click to collapse
It's not that hard, you just need to press the "Buttons" (Configure button re-map settings), and set profiles for when the screen is on/off. As far as I know, you can't set it to open an app while the screen is off, you'd need the screen to be on first. Aside from that, you could also try reading the button labels/descriptions, which might help. Also, there aren't that many buttons either, so just start pressing buttons and see what they do.
Antiga Prime said:
It's not that hard, you just need to press the "Buttons" (Configure button re-map settings), and set profiles for when the screen is on/off. As far as I know, you can't set it to open an app while the screen is off, you'd need the screen to be on first. Aside from that, you could also try reading the button labels/descriptions, which might help. Also, there aren't that many buttons either, so just start pressing buttons and see what they do.
Click to expand...
Click to collapse
All I can do for a button is add conditions. I can add conditions fine, but I can't see how to launch an app under those conditions.
Edit: Actually I figured it out but the program doesn't work.
Astralogic said:
All I can do for a button is add conditions. I can add conditions fine, but I can't see how to launch an app under those conditions.
Edit: Actually I figured it out but the program doesn't work.
Click to expand...
Click to collapse
I tested it out a few days ago, and it worked for me (used it to open a different camera app than the default one). Maybe it's the ROM you're on.
Antiga Prime said:
I tested it out a few days ago, and it worked for me (used it to open a different camera app than the default one). Maybe it's the ROM you're on.
Click to expand...
Click to collapse
I have the stock rom, never changed it.

Using tasker to simulate power button

I want to use tasker to turn the screen off. Secure Settings > Lock Device forces me to use pin, which is not what I want, as I use a finger print scanner to wake my device. Shell > Input keyevent 26 does not work either, as I am not rooted (Huawei Mate 9 pro, doesn't seem to have a reliable root yet).
I have tried doing it with System > Send intent, but that seems to have no effect. I dont know if I am doing it wrong. I have also tried
Code:
terminal task
, with a code like this (and some variants of it), without success:
Code:
am start --user 0 -a android.intent.extra.KEY_EVENT --es KEYCODE_POWER ACTION_DOWN
I have also tinkered with
Code:
android.intent.action.SCREEN_OFF
...but with even less success.
Any ideas as how how I can get this to work? Either with terminal emulator or tasker send intent task?
I think you can't do that cause you're using your Fingerprint. That is a security future and Tasker can't bypass it. Don't nail me on it cause I am not sure. Maybe someone else can prove me wrong.
Sent from my ONEPLUS A3003 using Tapatalk
Maybe you could setup a workaround for this. For example, you could lower the display timeout value to one second so your device locks itself.
(Don't forget to change the timeout back to your preferred value after another second!)
digitalpig82 said:
Maybe you could setup a workaround for this. For example, you could lower the display timeout value to one second so your device locks itself.
(Don't forget to change the timeout back to your preferred value after another second!)
Click to expand...
Click to collapse
Good idea. But the minimum is 7 seconds, which is too long to wait, for the solution to be worthwhile.
I found a way to do it:
1: Create a task:
display > display timeout: 8 seconds
scene: Show scene: popup - display as overlay, blocking, full screen​2: create a profile for screen on, create task:
hide scene: popup
display > display timeout: 30 seconds​
So you're hiding the ui with a black screen until the screen is really switched off after 8 seconds, right? But what happens when you press the back or home button within the 8 seconds? Does the scene disappear?
This is what I do. Just make a task with Run shell, no need for security settings app. In the command line type input keyevent 26. You then can add a short cut when you double tap the homescreen to turn off the screen.
@snorrski you might want to have a look at this:
https://forum.xda-developers.com/u/...-adb-shell-t3562013/post72212441#post72212441
It seems to be exactly what you wanted. It works without root and on my (unrooted) S7 Edge, I can still use the fingerprint sensor to unlock my device after locking it this way (input keyevent POWER).
digitalpig82 said:
So you're hiding the ui with a black screen until the screen is really switched off after 8 seconds, right? But what happens when you press the back or home button within the 8 seconds? Does the scene disappear?
Click to expand...
Click to collapse
Yes, exactly​. That's the way it is program.med for now.
digitalpig82 said:
@snorrski you might want to have a look at this:
https://forum.xda-developers.com/u/...-adb-shell-t3562013/post72212441#post72212441
It seems to be exactly what you wanted. It works without root and on my (unrooted) S7 Edge, I can still use the fingerprint sensor to unlock my device after locking it this way (input keyevent POWER).
Click to expand...
Click to collapse
Thank you! That does indeed look like what I need!
digitalpig82 said:
@snorrski you might want to have a look at this:
https://forum.xda-developers.com/u/...-adb-shell-t3562013/post72212441#post72212441
It seems to be exactly what you wanted. It works without root and on my (unrooted) S7 Edge, I can still use the fingerprint sensor to unlock my device after locking it this way (input keyevent POWER).
Click to expand...
Click to collapse
@snorrski
I know it's been over 2 years since y'all had this discussion, but I hope this still reaches you.
The power button on my Mi A1 stopped working recently and I can't seem to find it's replacement flex cable anywhere. I'm entirely new to Tasker but I have been reading for hours now to find ways to use a screen based interaction (say a double tap on the screen) to simulate the Power button to turn the screen off while still being able to unlock my phone with my fingerprint scanner.
So far, I've understood that it is doable (with an article refering to input keyevent 26), even more so on Android Pie (with another article refering to using Global_Actions) than it was previously possible, but am entirely clueless on how. I also couldn't quite understand the process of using the remote ADB shell plugin you mention here.
Could either of the two of you please share a step-by-step how-to on how to achieve the same? It would really help a lot. Thank you
Note: I'm using unrooted Mi A1 running stock Android Pie with July 1st security patch.
deepesh_p said:
@snorrski
I know it's been over 2 years since y'all had this discussion, but I hope this still reaches you.
The power button on my Mi A1 stopped working recently and I can't seem to find it's replacement flex cable anywhere. I'm entirely new to Tasker but I have been reading for hours now to find ways to use a screen based interaction (say a double tap on the screen) to simulate the Power button to turn the screen off while still being able to unlock my phone with my fingerprint scanner.
So far, I've understood that it is doable (with an article refering to input keyevent 26), even more so on Android Pie (with another article refering to using Global_Actions) than it was previously possible, but am entirely clueless on how. I also couldn't quite understand the process of using the remote ADB shell plugin you mention here.
Could either of the two of you please share a step-by-step how-to on how to achieve the same? It would really help a lot. Thank you
Note: I'm using unrooted Mi A1 running stock Android Pie with July 1st security patch.
Click to expand...
Click to collapse
Your post is getting long in the tooth. Are you still looking for help?
There are button remapping apps and apps that do double tap for off in the play store. Also, launchers can do this. Nova launcher for sure, but others I believe as well.
ktmom said:
Your post is getting long in the tooth. Are you still looking for help?
There are button remapping apps and apps that do double tap for off in the play store. Also, launchers can do this. Nova launcher for sure, but others I believe as well.
Click to expand...
Click to collapse
Hey, thanks for the suggestions. Gravity Screen, Nova Launcher as well as finally being able to understand Tasker, did help solve this issue, as I still look for a flex cable to fix the physical button issue as well.
deepesh_p said:
Hey, thanks for the suggestions. Gravity Screen, Nova Launcher as well as finally being able to understand Tasker, did help solve this issue, as I still look for a flex cable to fix the physical button issue as well.
Click to expand...
Click to collapse
Any chance this is what you're looking for?
https://www.cellspare.com/mi-a1-parts/xiaomi-mi-a1-side-key-flex-cable-module
ktmom said:
Any chance this is what you're looking for?
https://www.cellspare.com/mi-a1-parts/xiaomi-mi-a1-side-key-flex-cable-module
Click to expand...
Click to collapse
It is. Although, the price is 3.5x the price if I got it from an authorised Xiaomi service centre (except the one in my locality doesn't have it) and about 14x than what is available at local mobile spare parts shops (again not available). Hopefully, I'll find it soon.
deepesh_p said:
It is. Although, the price is 3.5x the price if I got it from an authorised Xiaomi service centre (except the one in my locality doesn't have it) and about 14x than what is available at local mobile spare parts shops (again not available). Hopefully, I'll find it soon.
Click to expand...
Click to collapse
https://www.ebay.com/itm/For-Xiaomi...851299?hash=item33fb43b7e3:g:BHEAAOSwfNpbM2Pn
https://www.parts4repair.com/side-key-flex-cable-for-xiaomi-mi-a1-5x/

OpenVPN 3.0.X - Connect and Disconnect with Tasker (Solution)

Hi All,
It would appear that the interface / code changed rather a lot in the most recent update and the previous intents are no longer working.
I have figured out how to fix this. Please follow the directions below.
Important Note: Your profile name is now prefixed with PC. E.g. My profile of test.co.uk/example [user] would now be PC test.co.uk/example [user]
So, here are the settings (don't include the curly brackets):
Connect
Action: net.openvpn.openvpn.CONNECT
Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME: PC {Your profile name}
Extra: net.openvpn.openvpn.AUTOCONNECT: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Disconnect
Action: net.openvpn.openvpn.DISCONNECT
Extra: net.openvpn.openvpn.STOP: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Edit: As of the current version (3.0.4), OpenVPN no longer remains in the foreground on disconnect.
Awesome... Thanks for the fix.
Sent from my Galaxy Note 8 using XDA Labs
Thanks
Yes - It is very annoying that OpenVPN remains on the foreground on Disconnect.
Can Tasker's Kill App be used for this purpose?
jvillasante said:
Yes - It is very annoying that OpenVPN remains on the foreground on Disconnect.
Can Tasker's Kill App be used for this purpose?
Click to expand...
Click to collapse
I tried this but it didn't seem to do anything.
mmotti said:
Hi All,
It would appear that the interface / code changed rather a lot in the most recent update and the previous intents are no longer working.
I have figured out how to fix this. Please follow the directions below.
Important Note: Your profile name is now prefixed with PC. E.g. My profile of test.co.uk/example [user] would now be PC test.co.uk/example [user]
So, here are the settings (don't include the curly brackets):
Connect
Action: net.openvpn.openvpn.CONNECT
Extra: net.openvpn.openvpn.AUTOSTART_PROFILE_NAME: PC {Your profile name}
Extra: net.openvpn.openvpn.AUTOCONNECT: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Disconnect
Action: net.openvpn.openvpn.DISCONNECT
Extra: net.openvpn.openvpn.STOP: true
Package: net.openvpn.openvpn
Class: net.openvpn.unified.MainActivity
Target: Activity
Annoyingly they have made it so OpenVPN remains in the foreground on disconnect. I have yet to look into this.
Click to expand...
Click to collapse
Thank you very much!!!
mmotti said:
Annoyingly they have made it so OpenVPN remains in the foreground on disconnect. I have yet to look into this.
Click to expand...
Click to collapse
:highfive: Thank you for finding this. I had to downgrade 1.1.27 to get my task to work, but now I've got the new UI and working tasks, so THANK YOU.
As a lazy workaround to the app remaining in the foreground I've added a 1-second wait then 2 AutoInput Back actions:
"Intent to end OpenVPN connection"
2. Wait = 1 second
3. AutoInput Global Action = Back
4. AutoInput Global Action = Back
mondohow said:
:highfive: Thank you for finding this. I had to downgrade 1.1.27 to get my task to work, but now I've got the new UI and working tasks, so THANK YOU.
As a lazy workaround to the app remaining in the foreground I've added a 1-second wait then 2 AutoInput Back actions:
"Intent to end OpenVPN connection"
2. Wait = 1 second
3. AutoInput Global Action = Back
4. AutoInput Global Action = Back
Click to expand...
Click to collapse
Could you explain in tasker how to do it?
Thanks
xhenon said:
Could you explain in tasker how to do it?
Thanks
Click to expand...
Click to collapse
You will need the AutoInput Tasker plugin for this to work. You can get it from here:
https://play.google.com/store/apps/details?id=com.joaomgcd.autoinput
1. Follow the above steps for the Disconnect task
2. Hit the + to add a new action
In the list that pops up, select Task -> Wait and change it to 1 second
3. Hit the + button to add a new action
In the list select Plugin -> AutoInput -> Global Action
Hit the pencil icon next to Configuration
Hit Action -> Select Back from the list
Hit the check mark on the top right, then hit the back button to return to the Actions list
4. Repeat #3
Your Actions list should look like the attached image.
I had to add the AutoInput 'Back' action twice since OpenVpn Connect backs out of the VPN Profile screen into the main app screen. The second Back action takes you to back into your last app/activity.
It's a lazy workaround so I'm sure someone will come up with something better in time.
Go Home tasker task
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
jvillasante said:
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
Click to expand...
Click to collapse
Excellent - Thanks.
Thank you for this. BIG help.
I was wondering if anybody out there has a profile for disconnecting from OpenVPN but only after wifi has been in disconnected state for 30 seconds?
Thanks.
jvillasante said:
As another workaround for OpenVPN Connect staying in the foreground on Disconnect I added this tasks to my disconnect profile
Wait 5 seconds
Go Home
Tasker has a Go Home task built in that effectively works for this use case!
Click to expand...
Click to collapse
Thanks to the OP and thanks to you,excellent info
Thanks for sharing, i was quite annoyed by that update.
Made my day
Hi.
Thank you for this.
Maybe i am just to noobish for this, but how do you make the command "Actions"?
Is that Secure settings?
betahelix said:
Hi.
Thank you for this.
Maybe i am just to noobish for this, but how do you make the command "Actions"?
Is that Secure settings?
Click to expand...
Click to collapse
I originally followed a guide here: https://collinmbarrett.com/android-tasker-openvpn/
That should tell you where to find the necessary actions.
Use the updated values in OP instead of those listed on the site, though.
mmotti said:
I originally followed a guide here: https://collinmbarrett.com/android-tasker-openvpn/
That should tell you where to find the necessary actions.
Use the updated values in OP instead of those listed on the site, though.
Click to expand...
Click to collapse
First of all, thank you for this post.
Currently I'm using "go home" to "close" open vpn after disconnect.
Latest change log says "* added minimize app on disconnect shortcut feature"
Do you think we can use it in Tasker somehow to natively minimize the app after disconnect?
Sent from my Pixel 2 using Tapatalk
rodak said:
First of all, thank you for this post.
Currently I'm using "go home" to "close" open vpn after disconnect.
Latest change log says "* added minimize app on disconnect shortcut feature"
Do you think we can use it in Tasker somehow to natively minimize the app after disconnect?
Click to expand...
Click to collapse
I was using: wait 1 second and go home.
After updating, it actually closes itself automatically now. It happens very quickly - I don't even see the OpenVPN UI.
mmotti said:
I was using: wait 1 second and go home.
After updating, it actually closes itself automatically now. It happens very quickly - I don't even see the OpenVPN UI.
Click to expand...
Click to collapse
Thanks, will try it out.
Edit: It worked perfectly, maybe time to update the original post?
Sent from my Pixel 2 using Tapatalk
rodak said:
Thanks, will try it out.
Edit: It worked perfectly, maybe time to update the original post?
Click to expand...
Click to collapse
I popped an edit in there
mmotti said:
I popped an edit in there
Click to expand...
Click to collapse
Hello,
I am using Automate its pretty much the same in terms of use like tasker.
But it's free and you Programm flows. But when I try this without using the back back option the disconnect interface didn't close it self.
Did you comment something new in the action blocks?
Gesendet von meinem G8341 mit Tapatalk

Strange camera behavior when using AI button

Hi all
I've just run into one of the strangest problems.
I have assigned the "open the rear camera" option to a long press on the so-called AI button.
Strange enough, pictures taken in the camera app opened after long pressing the AI-button, don't save on the device. They just disappear and are not visible in the gallery either.
When I open the camera-app with the regular shortcut, taking pictures works normally and I can find these pictures in the gallery as expected.
I really can't get my head around this. Is it a bug? Can anybody else replicate this?
me too
Same here reported the problem in another thread earlier already
ljo13 said:
Hi all
I've just run into one of the strangest problems.
I have assigned the "open the rear camera" option to a long press on the so-called AI button.
I really can't get my head around this. Is it a bug? Can anybody else replicate this?
Click to expand...
Click to collapse
are you using Global or China?
and how did you map the AI button?
dj69holland said:
are you using Global or China?
and how did you map the AI button?
Click to expand...
Click to collapse
Global , and the AI button double click to go to the Camera
Weird that not more people report this problem.
**edit** Does work with setting click twice volume down key, you will get the normal camera mode.
The mode the camera gets in when pressing the AI button has just 3 modes and doesnt save pictures, very very weird bug.
Global Rom indeed.
I mapped the AI button to the camera in the settings menu. There's no way to choose which app opens, there's a limited list and one of the options is "rear camera".
What Magst64 says is correct: only 3 modes in that camera app and pictures cannot be saved.
I'll see if there's any way to make a bug report.
im stuck on China rom until i unlock bootloader, so cannot check.
i would suggest to raise this bug on the MIUI forum.

[Project] Air Gestures to control your phone

With the announcement of the new gestures feature for the Pixel 4 I thought: "I should try something similar with Tasker".
Here it is!
It's obviously less precise because you don't have all the extra sensors needed for accurate gestures, but on the other hand it's infinitely more customizable!
Depending on what situation you're in, you'll be able to do lots of different things!
Included are:
Music control gestures
Whatsapp gesture
These are just 2 examples. You can expand on these and do whatever you want with them!
Import the project here!
Enjoy!
Great job Joao!!!
If I can, I would like to share mine too from time ago. Hope this helps yours
https://www.youtube.com/watch?v=_Pfuk7jy4J8
https://drive.google.com/file/d/10pu5BlcN59xFcvZ9P1pav9YGchhaIDiz/view
I'm assuming one would need root for this, yes?
stanleyopar2000 said:
I'm assuming one would need root for this, yes?
Click to expand...
Click to collapse
No root needed at all!
joaomgcd said:
No root needed at all!
Click to expand...
Click to collapse
So I gave it a whirl and i'm not sure if i'm a tasker noob but I could not seem to get it working and the setup was a little too complicated for me : /
It was saying no profiles currently running even though I switched the toggles
stanleyopar2000 said:
So I gave it a whirl and i'm not sure if i'm a tasker noob but I could not seem to get it working and the setup was a little too complicated for me : /
It was saying no profiles currently running even though I switched the toggles
Click to expand...
Click to collapse
I have imported the profiles and can not get it to work neither. Galaxy S10.
stanleyopar2000 said:
So I gave it a whirl and i'm not sure if i'm a tasker noob but I could not seem to get it working and the setup was a little too complicated for me : /
It was saying no profiles currently running even though I switched the toggles
Click to expand...
Click to collapse
mirrik said:
I have imported the profiles and can not get it to work neither. Galaxy S10.
Click to expand...
Click to collapse
What did you try it with? The music one or the Whatsapp one?
joaomgcd said:
What did you try it with? The music one or the Whatsapp one?
Click to expand...
Click to collapse
Not working with both of them. Tried with google play, spotify and whatsup. After import It asked to install AutoInput and AutoNotification which I did and purchased. I allowed all the permissions but maybe some are missing...
mirrik said:
Not working with both of them. Tried with google play, spotify and whatsup. After import It asked to install AutoInput and AutoNotification which I did and purchased. I allowed all the permissions but maybe some are missing...
Click to expand...
Click to collapse
Thanks. Can you verify that you have Tasker 5.8.2?
Also, did you give AutoNotification access to your notifications? Go to Tasker > Menu > More > Android Settings > Notification Access > Check if AutoNotification is enabled.
joaomgcd said:
Thanks. Can you verify that you have Tasker 5.8.2?
Also, did you give AutoNotification access to your notifications? Go to Tasker > Menu > More > Android Settings > Notification Access > Check if AutoNotification is enabled.
Click to expand...
Click to collapse
Yes, version 5.8.2 installed. AutoNotification has an access. All is set as you indicate. Maybe there is an issue with my proximity sensor. I test it by dialing *#77692# and by default it was off. I turned it on and It worked perfectly. On second attempt to dial It was off again. Maybe It is activated on samsung S10 only at performing specific action as making phone call?
I also checked with Sensoroid - Senso info app what sensor are there at my S10. It lists about 52 sensors found including TMD4910 Proximity sensor, Proximity pocket and Palm Proximity Sensor.
mirrik said:
Yes, version 5.8.2 installed. AutoNotification has an access. All is set as you indicate. Maybe there is an issue with my proximity sensor. I test it by dialing *#77692# and by default it was off. I turned it on and It worked perfectly. On second attempt to dial It was off again. Maybe It is activated on samsung S10 only at performing specific action as making phone call?
I also checked with Sensoroid - Senso info app what sensor are there at my S10. It lists about 52 sensors found including TMD4910 Proximity sensor, Proximity pocket and Palm Proximity Sensor.
Click to expand...
Click to collapse
Ah yes, that is possibly the issue! I've had reports from other people that the S10's sensor is not working as it should and only turns on during calls... Unfortunately I can't help with that one Check here for example.
I would love to hear some other ideas that people on this thread used when activating this. I'm not a WhatsApp user, so I'm only basing my experiences through GPM. Any additional apps where this could be advantageous?
Mate 20 lite not working i wasted 3 euros
---------- Post added at 10:13 PM ---------- Previous post was at 10:11 PM ----------
And yes latest version and autonotification enabled
Works for me. Thanks!
Is it posible to control Google Assistant with gestures? Just asking.
correcting my comment, it works perfectly now
great job
I'm new to tasker, and wanted to know if you can trigger the camera to take a photo with this air gesture?
I imported the file from the OP to my OnePlus 6T. This is the only thing I have setup in Tasker, and for the life of me I can not get it to function. An I missing something
phillymade said:
I imported the file from the OP to my OnePlus 6T. This is the only thing I have setup in Tasker, and for the life of me I can not get it to function. An I missing something
Click to expand...
Click to collapse
Start with making sure the proximity sensor is working. A poster above with a Samsung had a problem like that. If you need an app to test it, try Sensors Toolbox
Then look at the tasker log and see if there is any messages there that will help.
Are you trying the WhatsApp or music controls?
ktmom said:
Start with making sure the proximity sensor is working. A poster above with a Samsung had a problem like that. If you need an app to test it, try Sensors Toolbox
Then look at the tasker log and see if there is any messages there that will help.
Are you trying the WhatsApp or music controls?
Click to expand...
Click to collapse
Music.
I'll try your suggestion
I really want to control the camera with this, but I do not think it's possible.
Sensor is working see photo
Sent from my ONEPLUS A6013 using Tapatalk
View attachment 4859291
phillymade said:
Music.
I'll try your suggestion
I really want to control the camera with this, but I do not think it's possible.
Sensor is working see photo
Sent from my ONEPLUS A6013 using Tapatalk
View attachment 4859291
Click to expand...
Click to collapse
I actually installed this to see what was up. On the music version, the profile "Proximity With Music" has three contexts. The AutoNotification context is set to trigger the profile only on notifications from specific apps. You need to check and make sure your app is enabled there. Also, if you don't have AutoNotification installed, it won't work.
As far as taking a photo, that definitely can be done. Here is a Air Camera project. It builds on Joao's project and requires AutoInput to be installed.
It's possible that it won't work out of the "box" due to two things.
1) The "Camera" profile gets triggered based on the Google Camera app opening. This would need to be updated to whichever camera app is used.
2) In the "Handle Camera Gesture" profile entry task, the AutoInput action is expecting the Google Camera app. If that doesn't exist, that action can be updated to operate the shutter button in whatever camera app is installed.
NOTE: In the "Handle Camera Gesture" profile entry task, there is a paused action, "Take Photo". That is actually the Tasker action that will take a photo regardless whether the camera is open or not. It's a bit silly in this application but could be used instead of the AutoInput action.

Categories

Resources