Launch Now On Tap From Hardware Button - Tasker Tips & Tricks

I recently got hold of an Elephone P9000 which has a Shortcut button that can be used to launch an app, but not a function within an app. I've been playing around with app factory to allow it to do different functions & so far I've been able to set it up as a camera shutter button which is a glaring omission by Elephone as a selectable option.
I'm now looking to try to get it to work for Now On Tap but having issues.
The phone has the option between having the standard navigation bar or using a single multi use capacitive button which I find a great feature but it causes issues if you want to launch now on tap as you can't press & hold the home key.
I've got a task that does keypress 219 & this works on its own to launch now on tap & when I export it as an app it works if you open the app. It does not however work if you assign it to the shortcut key as my camera shutter app did.
I'm still on a steep learning curve with tasker so I thought I'd throw it out to you guys in case I might be missing something obvious.
Sent from my P9000 using XDA-Developers mobile app

Try using xposed additions module
and linking a Tasker task.
Sent from my SM-N920C using Tapatalk

RuggedHunter said:
Try using xposed additions module
and linking a Tasker task.
Click to expand...
Click to collapse
I did wonder if xposed might be the only way. As far has I've seen so far no one has a working solution for xposed on this phone. Time for me to start playing.
As far as apps created in Tasker do they still need the project to exist within Tasker to function correctly or is the intention that they should work as stand alone apps? I wanted to try to make the button multi use depending on certain conditions, so bringing profiles into it. Just don't want to waste a lot of time trying it if it's not going to work.

Related

Custom Function on Search key

is it possible to give the search hardware key another function?
for example an app?
or i would love to have the on/off screen rotation function on it.
there is an app in the market that allows this but it is limited. it can only program one app to it, but you can make it any app you want. I have it programmed to the screenshot app, so i can take screenshots anytime i want without having to go back to homescreen.
the app is called "Button Shortcut". Depending on the app you want, there may be specific search shortcut apps in the market. I have one called "Call Button" and this programs the search key to also bring up the dialer to make calls since our nexus does not have a physical button for dial.
yeah that app is cool, but it only replaces the long press function of the search key.
is it also possible to replace the normal click?
souljah2k said:
yeah that app is cool, but it only replaces the long press function of the search key.
is it also possible to replace the normal click?
Click to expand...
Click to collapse
Nope because the normal search screen can be handled by the active app.
I think in Cyanogenmod 7 you finally can do that.
l_Estat said:
I think in Cyanogenmod 7 you finally can do that.
Click to expand...
Click to collapse
in cm7, Settings > CyanogenMod Settings > Input.
You can set long press to custom application for the home and menu key
In addition, for the "search key" you can set custom app for both short & long key press.
For long press on Search button you can also use " LaunchKey " ... you can set any App you want or ... create a Menu of your favorite apps to lunch .
[email protected] said:
For long press on Search button you can also use " LaunchKey " ... you can set any App you want or ... create a Menu of your favorite apps to lunch .
Click to expand...
Click to collapse
i've tried this and it works. and if my memory is correct you can change long press and quick press to 2 different functions
Do yourself a favor and get Tasker. Binding the search button to pretty much anything you'd want is just one of about a billion things you can do with it. If you don't want to spend the money, you can try an app called AutomateIt. I haven't used that one as much as Tasker, but it has similar functionality.
Some of my Tasker tasks are:
Automatically turn on WiFi when I'm in my apartment
Turn off bluetooth when I disconnect my headset
Automatically turn on the GPS when I open Google Maps
Automatically start Pandora when I plug headphones in
You basically give it a trigger (app launching, button pressed, incoming call, etc) and a set of actions to perform when that trigger is hit.

Event for double tapping the recents button?

Basically, i'd like to be able to double tap my recents button (while using the phone one-handed) as an alternative to stretching my thumb way over to the back button (i've almost dropped the phone several times doing this). I'm not new to tasker and realize i may have to find some other solution, just thought maybe someone here would have a trick up their sleeve?
toby12188 said:
Basically, i'd like to be able to double tap my recents button (while using the phone one-handed) as an alternative to stretching my thumb way over to the back button (i've almost dropped the phone several times doing this). I'm not new to tasker and realize i may have to find some other solution, just thought maybe someone here would have a trick up their sleeve?
Click to expand...
Click to collapse
I use the module Xposed Additions and link a Tasker task for the keyevent I want.
Sent from my g928c powered by RiverRom RR1 and SkyHigh 4.8
Awesome, thanks!
Or another Xposed module named Physical Button Music Control allows you to link a tasker action to ANY hardware/capacitive button.... Even combinations of buttons, double taps, triple taps, holds, etc.... It's very robust

[App 5.+] VSB - Virtual Swipe Button

I switched last weekto the AOSP Oreo build for our beloved OnePlus One. So there I'm missing the possibility to customize hardware button remapping. Since I also don't like to waste place on my screen with the navigationbar, I polished up an app I developed once for my old Samsung Note 1.
VSB places a virtual button on the bottom of your screen (the grey circle in the screenshot). You can hide it and you can change the size. This button will always be there. So, now you can attach different events on different triggers of that button.
Triggers:
click
long click
double click
swipe up
swipe left
swipe right
Events:
Nothing
Home
back
Recents
open notifications
open Quick settings
open power menu
lock screen
open volume panel
To do this the app needs the following permissions enabled:
android.permission.SYSTEM_ALERT_WINDOW: to show the button over other apps, otherwise you could not click it
android.permission.BIND_ACCESSIBILITY_SERVICE: to trigger some events (home, back, power menu, ...)
android.permission.ACCESS_NOTIFICATION_POLICY: to open volume panel during "Do not disturb" mode
Downloads:
In the third post.
The app is complete open source: [url]https://github.com/scoute-dich/VirtualSoftKeys[/URL] and a heavily modified fork of VirtualSoftKeys, which is licensed under the Apache License.
The app can be used on any device running Lollipop+. I just want to share it, because for me it's usefull and I hope for some of you also. This is my way to say thanks to all other developers and to give the great community on XDA something back. If you have suggestions or if you find some bugs, just tell me here or open an issue on Github.
Regrads
Gaukler Faun
Downlods
I don't know why, but it doesn't work to upload a file ... From the smartphone it worked (see next post). Sorry.
Here is the download.
Gaukler_Faun said:
Here is the download.
Click to expand...
Click to collapse
If you could add open app drawer, this would be perfect.. I know I'm a small case scenario, but your dot will interfere with my layout (see screenshot).. If there's an app drawer ( or select app) feature, it'd be amazing.. Oh, and moveable too..
Volume option takes me to do not disturb option, not the volume panel..
Setting.Out said:
If you could add open app drawer, this would be perfect.. I know I'm a small case scenario, but your dot will interfere with my layout (see screenshot).. If there's an app drawer ( or select app) feature, it'd be amazing.. Oh, and moveable too..
Volume option takes me to do not disturb option, not the volume panel..
Click to expand...
Click to collapse
1. I don't think, that opening the app drawer is possible. I can't call "a launcher method" from outside the launcher. In my setup the dot also interferes with the open drawer function. But with my launcher (Flick launcher) it's possible to swipe up on the dock to open the drawer. Perhaps you have a similar possibility?
Also with your current settings it should be possible to touch the open app drawer button without clicking the VSB.
2. Moveable would be nice. I will look out for possibilities, when I have the time. At the moment I'm very busy at work and don't have much time. Also this app has a lower priority than other apps, I already published on PlayStore and F-Droid, which also have some outstanding issues to solve.
3. The thing with the volume panel is strange. I used the app on different Nougat and Oreo roms. And it always opens the "ringtone volume slider"...
But anyway, thanks for your feedback. I promise to take a look in the second suggestion.
Regards
Gaukler Faun

Identify button tags inside an app

This is my first post on here.
I make a lot of timelapses on my phone, i use the lightpainting mode (suitable for long exposures) with an autoclicker, but recently i've had issues with the autoclicker not tapping the shutter button. I've tried several non-root autoclickers with no luck.
I found out my automation app (macrodroid) has a function called UI Interaction which simulates a tap on the screen like any other autoclicker. This has the ability to press a specific place just by knowing the button tag (e.g. [id:com.huawei.camera:id/shutter_button]) and that's a great thing, it's just that when i try to register the 'stop shutter button' it's not doing anything. It's not being registred as a button. That means i have to find out the button id and write it in manually.
I'm asking if any of you have an app that lets you identify in-app button IDs?
Sent fra min CLT-L29 via Tapatalk

Reprogramming the Left, AI button for custom actions

I'm not 100% sure this is the right forum, if it's not, some mod feel free to re-categorise it.
For a while I've wanted to assign custom actions to the single button on the left of the device, but the most I was able to find is an Xposed script that runs, and then you use the volume keys to pick a few baked in actions (These didn't work for me in the end anyway).
So I thought I'd post my working solution, note that it uses a paid app, I don't get any kickbacks or anything.
I'm using "Xposed Edge Pro". It has a "Keys" option, which you can add new keys too.
You just click the "add key" button, press the AI button on the left and it recognises it!
From there you can assign things for the button (and any other of the buttons) to do, it supports single click, double click, and click-hold.
I've got mine setup to open a 3rd party camera, and through the "Actions", start recording straight away.
There's a magisk module for this, free of charge.
leledumbo said:
There's a magisk module for this, free of charge.
Click to expand...
Click to collapse
Which one? I believe it's the one I refenced already in my post.
https://forum.xda-developers.com/Mi-9/themes/mod-mi-ai-button-remapper-t3918291/amp/
I choose the do nothing option in magisk and then I use tasker to do what I want
swan11jf said:
https://forum.xda-developers.com/Mi-9/themes/mod-mi-ai-button-remapper-t3918291/amp/
I choose the do nothing option in magisk and then I use tasker to do what I want
Click to expand...
Click to collapse
Unfortunately that did not work for me, it's the one I referenced in my original post. I guess it doesn't work on all devices.
Interesting - on pixel experience plus if that helps with future rom decisions...

Categories

Resources