Easy way to change button actions when a user profile is activated? - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

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?

Related

[Q] customize the home double tap

as a user of power strip, i was extremely frustrated when i realized that the native double-tap function overrides whatever you set power strip to. coming from a droid 1 and cyanogenmod, i knew that there must be a way to take this function over.
after doing a lot of searching i came across this:
http://forum.androidcentral.com/motorola-droid-x/33482-disabling-customizing-double-tap-home.html#post349645
in that post zlandau mentions to edit a line in a database table in /data/data/com.motorola.android.providers.settings/databases/settings.db
line 352 has a value of 'double_tap'.
zlandau mentions to change that value to "<program>/<activity>"
assuming that this method will work for what i want to do [restore double tap to power strip], i'm not sure how to call the app properly.
if someone's able to help me out with this i'm pretty sure it will benefit everyone, as it will finally provide a means to disable/customize the function.
[btw i posted this over at droidforums, but figured i'd throw it up here for a quicker response]
also, once this is figured out, maybe someone could make an app to modify this and throw it on the market. i'm sure it would help a lot of people out. droid 2 and X users alike
after messing around i figured it out, with the help of launcher pro activities.
i didn't realize that the table extended to the right and when i saw the action that was set through the system i realized what i was missing.
i was looking for this
'mobi.intuitit.android.p.powerstrip/mobi.intuitit.android.p.powerstrip.PowerStrip'
however, if i set launcher pro as my default launcher and change the doubletap action to power strip, when i double tap it goes home then launches power strip.
i'm going to try just removing the value all together.
I like where this is headed!
Sent from my DROID2 using XDA App
ecnahc said:
after messing around i figured it out, with the help of launcher pro activities.
i didn't realize that the table extended to the right and when i saw the action that was set through the system i realized what i was missing.
i was looking for this
'mobi.intuitit.android.p.powerstrip/mobi.intuitit.android.p.powerstrip.PowerStrip'
however, if i set launcher pro as my default launcher and change the doubletap action to power strip, when i double tap it goes home then launches power strip.
i'm going to try just removing the value all together.
Click to expand...
Click to collapse
Just set the home key settings to do nothing in launcherpro
MotoBoy said:
Just set the home key settings to do nothing in launcherpro
Click to expand...
Click to collapse
yea that's what i already had it set to.
i guess getting power strip to work properly is another story..
but the instructions i posted above do accomplish setting the double home tap to whateve you want
ecnahc said:
yea that's what i already had it set to.
i guess getting power strip to work properly is another story..
but the instructions i posted above do accomplish setting the double home tap to whateve you want
Click to expand...
Click to collapse
That was a good find. I am thinking of what I want my home double tap to be
The problem is that it still takes you home before launching power strip, when it would be best to have it just launch power strip in the current program you are in... I ran into the same problem with quick desk. I settled on using smart taskbar instead because it can be launched by a swipe action, floating icon, or the notification area. And it launches over your current app window. The developer is very responsive to suggestions as well.
Sent from my DROID2 using Tapatalk
activity name?
I would like the double tap to launch google voice
how do I figure out what the name of the startup activity is?
I know the app is com.google.android.apps.googlevoice and I've guessed some generic activity names like com.google.android.apps.googlevoice.GoogleVoice but no luck so far
you can change the double tap home key by going into settings then applications then it will be the last option. not sure on the camera button

How To: Use Tasker to assign flashlight toggle to Active Key on S7 Active

Quick how to for any other S7 Active owners who like me were disappointed that the Active Key could not be used as a dedicated flashlight button.
I used the Tasker app with the free App Factory plugin to create an app that toggles the flashlight state.
1. Open Tasker and create a new task (I called mine Flashlight Toggle)
2. Click the Add action button (the + at the bottom) and the Select Action Category window will pop up
3. Type Torch into the filter at the bottom of the Select Action Category window
4. In the Action Edit screen select Toggle from the dropdown in Set
5. Press back to return to the Task Edit screen
6. In the lower right press and hold the icon button and assign the task an icon
7. Press back to return to main Tasker screen - press and hold on the Flashlight Toggle task (or whatever you called it) task to highlight it
8. Select Export from the menu button in the upper right and export as an app.
8a. You may need to install the apk you just created manually depending on permssion settings with tasker (thanks for heads up 78c10)
9. Now open Settings and Navigate to the Active Key settings
10. You should have an app named Flashlight Toggle that you can now assign to the Active Key
Congratulations, you now have a dedicated flashlight button on your S7 Active.
I don't mean to sound critical, so please forgive me, but wouldn't it have been easier to download a flashlight app, and set it to the button?
I personally can't believe you didn't get more feedback on this. What a beautiful, elegant solution.
I was shocked to find that there was no option available to bind a long press of the action key to flashlight, how stupid. You fixed it, and you fixed it in a beautiful way! Thanks.
@Chr0nos77 I had done this previously, but was plagued with either apps that would then open and not turn off the torch by holding it, or having ads emblazoned across my device.
Smooth solution. The only thing that differed from the instructions is that after I exported the app, I had to install it before I could use it. So, I guess don't miss out on that step.
For some reason, I had to factory reset my phone to get the app factory to install. Oh well.
Only problem I'm having with this is that even though I have the app in my whitelist, if the phone is in deep doze the button does not reliably launch the flashlight. Have to press unlock button first then the active key. Still good but would be good if I could somehow force it to work with aggressive doze.
Is there a way to set the flashlight to full brightness? When you turn on the flashlight in the notification panel, it's only set to 30% of it's brightness, but when you open the Activity Zone, you can turn it all the way up to 100%, is there some way to make the 100% setting standard?
Hello. Tasker cannot support Torch in Android 5.0.1. Is there some other way to do it?
akran said:
Hello. Tasker cannot support Torch in Android 5.0.1. Is there some other way to do it?
Click to expand...
Click to collapse
I'm not sure in 5.0.1 - I used this with my S7A which was Android 6 out of the box.
gotta say.. works VERY well
Thank you for this, I've been looking for a way to be able to skip tracks with the active key and found a way to do it using the same logic you described here (made an app for next track and on for previous). If anyone is interested let me know and I'll put instructions for how I did it.
miniminus said:
gotta say.. works VERY well
Click to expand...
Click to collapse
kuaka said:
Quick how to for any other S7 Active owners who like me were disappointed that the Active Key could not be used as a dedicated flashlight button.
I used the Tasker app with the free App Factory plugin to create an app that toggles the flashlight state.
1. Open Tasker and create a new task (I called mine Flashlight Toggle)
2. Click the Add action button (the + at the bottom) and the Select Action Category window will pop up
3. Type Torch into the filter at the bottom of the Select Action Category window
4. In the Action Edit screen select Toggle from the dropdown in Set
5. Press back to return to the Task Edit screen
6. In the lower right press and hold the icon button and assign the task an icon
7. Press back to return to main Tasker screen - press and hold on the Flashlight Toggle task (or whatever you called it) task to highlight it
8. Select Export from the menu button in the upper right and export as an app.
8a. You may need to install the apk you just created manually depending on permssion settings with tasker (thanks for heads up 78c10)
9. Now open Settings and Navigate to the Active Key settings
10. You should have an app named Flashlight Toggle that you can now assign to the Active Key
Congratulations, you now have a dedicated flashlight button on your S7 Active.
Click to expand...
Click to collapse
bandario said:
I personally can't believe you didn't get more feedback on this. What a beautiful, elegant solution.
I was shocked to find that there was no option available to bind a long press of the action key to flashlight, how stupid. You fixed it, and you fixed it in a beautiful way! Thanks.
Click to expand...
Click to collapse
78c10 said:
@Chr0nos77 I had done this previously, but was plagued with either apps that would then open and not turn off the torch by holding it, or having ads emblazoned across my device.
Smooth solution. The only thing that differed from the instructions is that after I exported the app, I had to install it before I could use it. So, I guess don't miss out on that step.
For some reason, I had to factory reset my phone to get the app factory to install. Oh well.
Click to expand...
Click to collapse
can anyone give me the apk that the app creator made?
muneebrocks said:
can anyone give me the apk that the app creator made?
Click to expand...
Click to collapse
Yes!
Here is a link: https://drive.google.com/open?id=0Bw15QUNVlpHoMjdqdWVJbXh2YjA
All credits to Kuaka! Thanks for this nice tweak!
Arteush said:
Yes!
Here is a link: https://drive.google.com/open?id=0Bw15QUNVlpHoMjdqdWVJbXh2YjA
All credits to Kuaka! Thanks for this nice tweak!
Click to expand...
Click to collapse
thank you so much
i made a bixbybutton app using this method,
to enable our activity button, to be a bixby button
(i included it into the Ufrim modder
Is it possible to use this Tasker and create mobile data button/apk to toggle on/off data for Oreo?
dedicha said:
Is it possible to use this Tasker and create mobile data button/apk to toggle on/off data for Oreo?
Click to expand...
Click to collapse
https://www.xda-developers.com/how-...ttings-tile-toggle-on-samsung-galaxy-devices/
patzyalex said:
https://www.xda-developers.com/how-...ttings-tile-toggle-on-samsung-galaxy-devices/
Click to expand...
Click to collapse
Unfortunately, not working on my phone, maybe because of oreo update.
dedicha said:
Unfortunately, not working on my phone, maybe because of oreo update.
Click to expand...
Click to collapse
It does work on Oreo and not only for me, other users report it as well.
patzyalex said:
It does work on Oreo and not only for me, other users report it as well.
Click to expand...
Click to collapse
I have tried it, it just reordered the position of the icons, no mobile data toggle
Finally, success!
I read another command in the posts, that did the job!
Just put that command in the adb shell:
settings put secure sysui_qs_tiles "$(settings get secure sysui_qs_tiles),MobileData,Hotspot"
I have no idea why the first one did not do it and what exactly is the difference, but this command did it !
I DLed this
https://apkpure.com/flashlight-toggle-simple-and-minimalist/com.nomadicratio.flashlighttoggle
its quick... a bit of a screen white for a split second but then it turns on and off just fine

Immersive Mode Tasker Profile For Nougat

Hey guys. I recently updated to Nougat on my 6p, and was disappointed to find a lack of immersive mode. With our screen being OLED, and susceptible to burn in, I wanted to find a solution. After some digging, I discovered a fix that could be implemented using Tasker, and wanted to share the profile in case anyone else out there found themselves in my position. You will need Tasker, and you will need to be rooted. Load up the profile, and then click on the event trigger, and select the apps you want to use immersive mode with. As it's setup now, opening the designated apps will enable immersive mode, and exiting the app will disable it. Let me know if you need any help getting this up and running.
https://drive.google.com/file/d/0B7TzRfrotbIcVk1wbHNPcUZLeUk/view?usp=drivesdk
OneNutShort said:
Hey guys. I recently updated to Nougat on my 6p, and was disappointed to find a lack of immersive mode. With our screen being OLED, and susceptible to burn in, I wanted to find a solution. After some digging, I discovered a fix that could be implemented using Tasker, and wanted to share the profile in case anyone else out there found themselves in my position. You will need Tasker, and you will need to be rooted. Load up the profile, and then click on the event trigger, and select the apps you want to use immersive mode with. As it's setup now, opening the designated apps will enable immersive mode, and exiting the app will disable it. Let me know if you need any help getting this up and running.
https://drive.google.com/file/d/0B7TzRfrotbIcVk1wbHNPcUZLeUk/view?usp=drivesdk
Click to expand...
Click to collapse
Just what I was missing in Nougat, except the volume - press to skip tracks.
Once the navbar is hidden, can just swipe up to get it back, or do I need pie controls to have this work?
any workaround for not exiting immersive mode when opening the keyboard inside a designated app?
Mikegrmn said:
Just what I was missing in Nougat, except the volume - press to skip tracks.
Once the navbar is hidden, can just swipe up to get it back, or do I need pie controls to have this work?
Click to expand...
Click to collapse
Happy to help. You can just swipe up to get the navbar back. I've been trying to figure out a solution to the volume button media controls, but so far have been unable to figure anything out. There's an app called Button Mapper that is currently in beta that allows you to define button long presses. Two big caveats are the screen must be on, and the current build still seems a bit janky. It's entirely possible that it's my rom that isn't playing nice, but occasionally I'd get a situation where my volume just wouldn't change. Maybe give it a try, perhaps you'd have better luck.
OneNutShort said:
Happy to help. You can just swipe up to get the navbar back. I've been trying to figure out a solution to the volume button media controls, but so far have been unable to figure anything out. There's an app called Button Mapper that is currently in beta that allows you to define button long presses. Two big caveats are the screen must be on, and the current build still seems a bit janky. It's entirely possible that it's my rom that isn't playing nice, but occasionally I'd get a situation where my volume just wouldn't change. Maybe give it a try, perhaps you'd have better luck.
Click to expand...
Click to collapse
I've downloaded the xml and installed tasker again. I've added a profile and selected chrome beta as trigger. How do I make it call the xml. Sorry for the dumb question, but since most roms provide what I need today, I haven't used tasker for a while. Thanks for the help.
OK, found it. Long press on profile tab and choose import option.

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.

Navigation Buttons Mod?

Call me a bit old fashioned, but I have a specific set of "keybinds" that I always work to achieve one way or another on my android devices.
The "Menu" button of old is more important to me than a "Recents" button - really just hoping to achieve inverted behavior of the square button: short press for menu, long press for recents.
Long pressing the "Back" button should kill the foreground app.
Any other bind to quickly toggle the torch light.
Using the menus in OxygenOS, I can't seem to achieve this. Any suggestions or secrets I've yet to find out about?
In Oxygen os you can set LONG PRESS RECENT BUTTON to perform MENU Action. I use it all the time.
About long press back button to kill app, I think this feature was removed in PIE.
Me too was looking for it but didn't find a solution.
Anyway I quickly realized that I don't need it. Op6t can keep a lot of app in memory so there's no need to kill.
When i want to kill one or all i use Recents.
Not a big deal for me.
Yep that's how I'm using everything now. It gets the job done, though I find myself reverting to old habits absent-mindedly. I'm sure I'll be perfectly adapted in a matter of days.
bigcc32 said:
Call me a bit old fashioned, but I have a specific set of "keybinds" that I always work to achieve one way or another on my android devices.
The "Menu" button of old is more important to me than a "Recents" button - really just hoping to achieve inverted behavior of the square button: short press for menu, long press for recents.
Long pressing the "Back" button should kill the foreground app.
Any other bind to quickly toggle the torch light.
Using the menus in OxygenOS, I can't seem to achieve this. Any suggestions or secrets I've yet to find out about?
Click to expand...
Click to collapse
Try this app: https://play.google.com/store/apps/details?id=xyz.paphonb.systemuituner
dannejanne said:
Try this app: https://play.google.com/store/apps/details?id=xyz.paphonb.systemuituner
Click to expand...
Click to collapse
Permissions granted using root. It won't get past the compatibility check (The screen says "If you don't see anything your device is incompatible," and I certainly dont see anything). Thanks for the suggestion, though.
bigcc32 said:
Permissions granted using root. It won't get past the compatibility check (The screen says "If you don't see anything your device is incompatible," and I certainly dont see anything). Thanks for the suggestion, though.
Click to expand...
Click to collapse
It can be granted access with ADB (PC). It should work I've had it work even on LG phones and such.
dannejanne said:
It can be granted access with ADB (PC). It should work I've had it work even on LG phones and such.
Click to expand...
Click to collapse
I don't think the permissions are the problem. The app doesn't complain about that, it just doesn't do anything to the nav bar during setup, and according to the app that's indicative of incompatibility.

Categories

Resources