Tasker - interact with app how to - Android Software Development

Has anyone used Tasker with SDMaid to check for when the Scan button changes to Clean to allow for quick input tap.
Looking to automate this and a few other apps and I'm having no luck getting a way around wait commands.

Related

Launch Daydream with a Shortcut

Has anyone figured out a way to launch Daydream using NFC launcher, either directly or using Tasker or any other shortcut app?
I am using a wireless charging solution and would love to launch Daydream using NFC as I put the phone on the charger, but do not want to have daydream on all the time when it is plugged in to a wired charger.
I tried Daydream Launcher in the app store but it does not work on the S4.
Thanks.
Reviving an older post I know but....I'd also like to see this possible rather than having to go through the Settings>Display>Daydream rigmarole
I also would like to know if there is a quick or even automatic way to start daydream rather than lock screen.
Yes, daydream mode is a nice feature of Samsung, but very cumbersome to activate.
I'd like to see quick way to activate too.
Hummmm that gives me an idea, maybe a custom shortcut maker might help. Will give it a go..
Edit, I used quick shortcut maker and made a shortcut easy.
In quick shortcut maker you can do a search, so I just typed "day" and daydream showed up on the list all on its alone I hope this is what your all looking for.
Sent from my GT-I9505 using xda app-developers app
ranger4740 said:
Yes, daydream mode is a nice feature of Samsung, but very cumbersome to activate.
I'd like to see quick way to activate too.
Hummmm that gives me an idea, maybe a custom shortcut maker might help. Will give it a go..
Edit, I used quick shortcut maker and made a shortcut easy.
In quick shortcut maker you can do a search, so I just typed "day" and daydream showed up on the list all on its alone I hope this is what your all looking for.
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Thanks ranger4740. :good: A shortcut sure does help.
I moved from a Galaxy Nexus to the Galaxy S4. The pogo-pin desktop dock was one of my favorite things about the GN. With Daydream, it made it into a perfect clock. So one of the first things I did when I got the GS4 was to figure out how to get as close as possible to what the GN was like in the dock.
The app Daydream Launcher launches Daydream and I was able to set up an NFC task for it using NFC Task Launcher. I also installed a clock replacement called Clock Plus that has more features than the stock clock app, such as allowing an adjustable brightness range for night mode that allows for extreme dimness--which I prefer.
I place my phone into a little plastic stand in landscape mode on my nightstand and was having problems getting Daydream to go into landscape, so I use an app called Rotate to make sure I have landscape Daydream mode when I plug in my phone and set it in the stand.
So now, I plug in my phone, unlock it, and touch an NFC tag to get where I was with my old GN and the pogo dock. Not quite as elegant, but it works fairly well.
The Secure Settings Tasker plugin allows you to toggle daydream too.
The best I was able to do with Secure Settings was go directly to the Daydream Settings page, but not launch Daydream directly, which was exactly what Quick Shortcut Maker did. This thread is about the GS4, so it shouldn't be Touchwiz that's the problem. Am I missing something?
I know there's a problem with Touchwiz messing up the simple way other versions of Android get to Daydream. Daydream Launcher is listed as incompatible with the GS4 and would not let me download it. Daydream Launcher Pro force closed. The only other daydream launching app I found let me download it and then gave me a message saying my device was not supported.
I tried using a touch-recording macro that could possibly be used in a Tasker task, but the stop button was hidden by Daydream's fullscreen window, so it wasn't useful.
I've even been looking for Xposed Framework mods to make a direct path and I couldn't find anything.
Just found this thread because I wanted to do the same
Found a solution:
Tasker + Secure Settings (https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin&hl=de)
--> Install Secure Settings, Enbale System+, Set DayDream to "always", Set a Task in Tasker if Power + Wireless --> SecureSettings Toggle DayDream
So it will be on if you wireless charge and if you don't charge wirless the DayDream gets deactivated.
chrisonline said:
Just found this thread because I wanted to do the same
Found a solution:
Tasker + Secure Settings (https://play.google.com/store/apps/details?id=com.intangibleobject.securesettings.plugin&hl=de)
--> Install Secure Settings, Enbale System+, Set DayDream to "always", Set a Task in Tasker if Power + Wireless --> SecureSettings Toggle DayDream
So it will be on if you wireless charge and if you don't charge wirless the DayDream gets deactivated.
Click to expand...
Click to collapse
And I just found your post because I want to do the same! I have DayDream set to activate while charging or docked on my Nexus 6. The problem is that when the phone is fully charged, the current stops on my wireless charger and so does DayDream. Does your Tasker task fix that or does the Toggle keep it active until you manually toggle it off?
Puh.. Good question.
I don't use it anymore because my Nexus 5 are getting extremly hot if I do this...
So I can't remember how it was if the battery was full charged... But I think it worked all the time.
chrisonline said:
Puh.. Good question.
I don't use it anymore because my Nexus 5 are getting extremly hot if I do this...
So I can't remember how it was if the battery was full charged... But I think it worked all the time.
Click to expand...
Click to collapse
Thanks Chris, I guess all I can do is try it. Ideally I'd like it to activate for my wireless charger at home, but not for my wired chargers at home and in my car. If just that part works, it will be worth it.
Yeah with Tasker this should work of you have Bluetooth in your car. Tasker can than check if in car.
chrisonline said:
Yeah with Tasker this should work of you have Bluetooth in your car. Tasker can than check if in car.
Click to expand...
Click to collapse
you can also launch it from home screen its easy you have to have nova launcher installed...go to gestures & input now select a swipe gesture for example swipe up now head to shortcuts then activities now scroll down until you see system ui now tap on system ui and select day dream and you're done

Easy way to change button actions when a user profile is activated?

Hi, I am looking for a super simple, cheap (free?) way to automatically change button actions when a user profile has been activated.
Specifically, I want to change the home button action. You know how you can go into an AOSP ROM and change the button action? Well, I want that capability but I need it to be automated when a profile is activated.
Any ideas?
Please don't recommend Tasker. I'm already aware of this option.
Okay, I've searched everywhere and can't figure out how to change the action on the Home Button to open a particular app using the single click action. It can be done with long-click I believe, but I need single click action for this project.
I'm now ready to look at Tasker as an option. Anyone know how to get that to work?

Can I remap the Bixby button to perform sequenced tasks?

I've seen some guides about remapping the Bixby button, but I wanted a little more advanced feature than that.. I have a widget that starts/stops a service, and I also have a widget that force rotates my screen to landscape.. I would want the Bixby button to both activate the widget service and also activate the rotation service. Is there a way to do that?
Galaxy S8 Exynos, rooted with Magisk.
keem85 said:
Is there a way to do that?
Click to expand...
Click to collapse
With technology, anything is possible. May I suggest you start with downloading the Android SDK from Google, contributing to simular projects on GitHub, and watching YouTube videos on custom kernels.
How bout that?!
try the app "Tasker".
you can use bixbye to trigger tasker, and in tasker you can configure multiple(and even conditional) actions.
keem85 said:
I've seen some guides about remapping the Bixby button, but I wanted a little more advanced feature than that.. I have a widget that starts/stops a service, and I also have a widget that force rotates my screen to landscape.. I would want the Bixby button to both activate the widget service and also activate the rotation service. Is there a way to do that?
Galaxy S8 Exynos, rooted with Magisk.
Click to expand...
Click to collapse
I think it is possible, but you will need another apps to help you.
I remember there is (are?) a bixby button remapper that is compatible with launching tasker profiles. Combine it with tasker, and you will get what you want.
I haven't tried it personally though, I just see its possibility.
thedicemaster said:
you can use bixbye to trigger tasker, and in tasker you can configure multiple(and even conditional) actions.
Click to expand...
Click to collapse
I'm actually trying out Tasker now, and I have BixBye.. But it doesn't look like Tasker is able to simulate widget-presses, only application launches.
try throwing autoshortcut in the mix.
I don't think it supports outright controlling a widget, but it should be able to hook into the activity the widget triggers.
maybe you can do it with tasker's send intent function too, but it's a little more complicated because you need to know the actual command the widget sends out.

FTVStick and Launcher

Hi
i was wondering if nobody tryed to disable the original launcher with llama or automate.
I actually use FTVStick with llama and 1 rule.
If the "Handy" restarts, launch Appstarter.
When FireTV is Turned on, a few seconds after Booting up, llama start Appstarter.
I dont need the Original Amazon menu and want to disable it all the time.
The idea is, a rule like "if ktv-launcher is foreground start appstarter", and if i push the "Home" button on remote, Amazon launcher start, llama will recognized that and start Appstarter.
So i dont need to root.
My problem is, llama is very old and not supportet anymore.
So the Rule "app in foreground" doesnt work, and i need to switch to another tool.
On a FireHD10 Tab i used Automate and it works to use a alternative launcher.
Every time i press the Home button, the amazon launcher appear, and after 1-2 seconds automate starts another launcher.
The problem, i cant use Automate on FTVStick, because i need a touchscreen to configure the tool.
I hope, anybody can help creating a Automate flow with the options to check if ktv-launcher is the active app and start appstarter,
or give me a hint how to do my idea without a touchscreen.
thanks
I was able to control automate using a mouse and keyboard but I don’t think you can monitor for foreground applications without access to accessibility services. I hope you can get it to work though as I would love this!
I use Appstarter and Launcher Hijack, and followed the "Disable bloatware..." thread...
Amazon Launcher is not on my device, home button works flawlessly to return me to "Top TV Launcher 2" and it used to work for AppStarter when that was my main launcher.
FTVS2
@TimmyP many Thanks.
LauncherHijack works Perfect.
It doesnt Start Firestopper on Boot, but it catch the Home Button.
I use llama with the "On Boot" Rule and LauncherHijack for Home Button.
Thank You !
happy to help

[Solved] Fake navigation app to use in Tasker for Chinese head unit

I have a generic Chinese head unit that allows me to define a Navigation app that can open when I press a specific button on my steering wheel.
However all the available apps for selection from my installed applications are the navigation ones (Google Maps, Sygic, Waze).
The thing is that I don't need to open a navigation app and want to make the button do something else, like starting Google Assostant for example which will be more useful.
So I would like to ask if someone knows a way or fake application that is viewed as an Navigation app from Android, which I will be able to assign to the button. And then link it to Tasker / Macrodroid / Autome whatever can handle it.
If the app can be configured to send intents or call something from Tasker it will be great.
There are triggers for app opening also but I guess for it to work the fake app shouldn't open anything and auto close, because killing apps requires root.
Another options is to make the Tasker secondary launch or Automate alternative start be recognized as an navigation app, so I could select it as my navigation app, but I don't think that would be possible really.
If anyone has any ideas it will be greatly appreciated.
P.S. Technically I can develop the app myself, but I'd like to know if there is a faster way
P.S.2. Solved.
You could do the following trick:
- trigger for Tasker: Google Maps (or similar) started
- then run a task which waits 2 seconds and then opens your app
Second possibility is to rename the package name of your app to the same as a navigation app like Sygic. You could use an app like Lucky Patcher. I don't know if this will work. Give it a try.
The first approach will leave an open Navigation app which is not desired, and I'm trying to avoid.
The second option is an interesting suggestion, I could try that (although the app will be better to auto close again). Who knows, maybe the chinese software is **** and only checks for specific text in the app package name
AppSwitcher - smart SWC launcher (for Junsun, Xtrons and similar devices) incl. autostart
AppSwitcher SWC (Steering Wheel Control) app launcher Stay focused on the street and don't touch the head units display to switch between apps. Support the development of this free app via ko-fi.com/appswitcher Please note: This app is...
forum.xda-developers.com
You could check if 'AppSwitcher Starter' appears in your list after installation.
If your goal is not to have an app switcher you could try 'FlowStarter' which can trigger an Automate Task and start the Automate Service:
Use SWC to switch between Navi and Radio
Attached app FlowStarter.apk allows to start an Automate flow (https://llamalab.com/automate/) which has to be defined in file flowstarter.cfg Required steps: 1. Install the apk. 2. Extract the file flowstarter.cfg to the internal storage (root...
forum.xda-developers.com
It works with every Flow and the attached Flow is just a sample.
Ok, so I had some time to tinker with the head unit and found out that it had a dumb check for the navigation app based on the package name containing certain words.
So I changed the package name of the FlowStarter app to include the word 'navi' and then I was able to select it in the menu as my navigation app.
So now I can technically do anything with the flow in Automate.
Thanks for the app recommendation very useful
alexdo said:
Ok, so I had some time to tinker with the head unit and found out that it had a dumb check for the navigation app based on the package name containing certain words.
So I changed the package name of the FlowStarter app to include the word 'navi' and then I was able to select it in the menu as my navigation app.
So now I can technically do anything with the flow in Automate.
Thanks for the app recommendation very useful
Click to expand...
Click to collapse
Great. Have fun with FlowStarter but leave a like for my app. ;-)
TorstenH said:
Great. Have fun with FlowStarter but leave a like for my app. ;-)
Click to expand...
Click to collapse
Liked it np. Very useful, was able to do a flow that detects how many times I started it in the span of some time (a second), so now I can assign multiple actions for the button, just have to think what they will be
alexdo said:
Ok, so I had some time to tinker with the head unit and found out that it had a dumb check for the navigation app based on the package name containing certain words.
So I changed the package name of the FlowStarter app to include the word 'navi' and then I was able to select it in the menu as my navigation app.
So now I can technically do anything with the flow in Automate.
Thanks for the app recommendation very useful
Click to expand...
Click to collapse
Great. Have fun with FlowStarter but leave a like for my app.
alexdo said:
Liked it np. Very useful, was able to do a flow that detects how many times I started it in the span of some time (a second), so now I can assign multiple actions for the button, just have to think what they will be
Click to expand...
Click to collapse
You could have a look on the sample flow which allows to switch between last used media app and navigation app with a single button press.

Categories

Resources