Creating advanced shortcuts on Android - Android Q&A, Help & Troubleshooting

Hi XDA,
I'm wondering if something like this already exists, and if not, is it possible.
There's a camera feature I use regularly which in order to access I have to follow these steps: Open camera, click more, click aperture, click the aperture button and select the value (always the same value)
..that is a lot of clicks, there is no way to create shortcut to this mode by default, so wondering if there is some sort of macro app that will simulate screen presses to get me to the right place via a shortcut on the launcher? Its a huawei phone, android 10, with no possibility of rooting. TIA

Related

[Request] A hotkey manager/creator

With the release of the Xperia Play specifically, it'd be nice if we had a way to create system wide, and per-program hotkeys.
For example, the camera app has X mapped as the shutter button. With this program we could set it so when the camera app is running, that R will take a picture (so we can do it with the camera closed) and in the home menu, pressing L and R together will open the camera program.
Some games/apps are programmed to let us map buttons, but very few use the analog touchpad. It'd be nice if we could map the different directions to different keys, so we could get rudimentary support for them in existing apps.
Now for those apps that dont use buttons at all, it could send touchscreen presses to them. You'd need a way to do this within the app itself so you could see where you're going to press it. Perhaps via a something (a widget?) in the notification slider, that takes a screenshot and brings up the menu, to let you select the X/Y coordinate to send. This would work great for the touchpad and virtual on-screen analog sticks
Now I can understand if you guys dont want to waste your time, but if you can provide me the necessary API, when I get the hang of Android development I could do it in time. Assuming it works like Windows, I'd need equivalent API to:
-listen for key presses even when the app is not in focus
-detect which app is in focus
-send artificial key/touchscreen events to that app
-take a screenshot of that app
Also, if you can provide the API to run the current Live Wallpaper in the background, it would help for another project I'd like to do.
Great project, with i could help you out. But i dont understand a thing about programming

[Help] GMD GestureControl

I'm developer of application that allows to control tablet (or phone) with gestures similar to iPad.
GMD GestureControl on XDA
I added support for Nexus 10, but I didn't know touchscreen resolution, so I need your help.
If your device is rooted, please install application from that thread (or Play Store) and send me calibrations values:
1) Open application
2) Go to 'Advanced' tab
3) Click 'Calibrate' and follow instructions on screen. Basically you have to click 'Start' and then touch borders till calibration values stop increasing (maximum is registered). Then click 'Stop'
4) Open Help tab, click Email developer->Good overridden settings. Application will prepare email with calibration values. Email it to me.
Thank you.
Just sent you an email. Hope it helps but not entirely sure if the values are right because the screen resolution of a Nexus 10 should be 2560x1600.
Sent from my Nexus 10 using xda premium
bamboosensei said:
Just sent you an email. Hope it helps but not entirely sure if the values are right because the screen resolution of a Nexus 10 should be 2560x1600.
Sent from my Nexus 10 using xda premium
Click to expand...
Click to collapse
Thank you. I updated values. Touch screen resolution may differ from display resolution. Android does mapping inside, but I cannot retrieve these values, so I have to add these values into application or users have to do calibration.
Your app rocks!
Sent from my Nexus 10 using Tapatalk HD
i wrote a mod to disable the software buttons because i only use gestures now!
i think thats the future when it comes to operating touch screen devices
StupidIdea said:
I'm developer of application that allows to control tablet (or phone) with gestures similar to iPad.
GMD GestureControl on XDA
I added support for Nexus 10, but I didn't know touchscreen resolution, so I need your help.
If your device is rooted, please install application from that thread (or Play Store) and send me calibrations values:
1) Open application
2) Go to 'Advanced' tab
3) Click 'Calibrate' and follow instructions on screen. Basically you have to click 'Start' and then touch borders till calibration values stop increasing (maximum is registered). Then click 'Stop'
4) Open Help tab, click Email developer->Good overridden settings. Application will prepare email with calibration values. Email it to me.
Thank you.
Click to expand...
Click to collapse
Love the work! I have been around XDA for a long time, probably three or four years before I started using this screen name & they added the one name rule. I have always supported those developers that seem good people with great ideas. I never tried your "lite" version, nor did I try any XDA beta versions. I read what the app did, loved the idea, saw a few screen shots & reviews/comments from a few folks I know & respect & instantly purchased both GMD & S-Pen Gesture Control pro apps from the Play Store. I also instantly shared my positive feedback with many via G+ & a few sites.
Having a long XDA history, I have seen a lot of great ideas come & go. Some never quite live up to what they could be, some are ahead of their time & others just are nothing new, just the latest incarnation of some semi-popular feature.
Occasionally though, something comes along that is simple, yet elegant & happens to be an absolutely precise representation of tha natural progression & evolution of base features. This app is just that, the extension of natural progression that touch navigation is becoming. This app is like a feature that should already be integrated from Google, so natural & simple, and yet, so necessary. Anyone that hasn't at least played with this app, is missing out. It is by far my favorite app & I highly recommend supporting the developer, whomever he or she is.
schnip said:
i wrote a mod to disable the software buttons because i only use gestures now!
i think thats the future when it comes to operating touch screen devices
Click to expand...
Click to collapse
Totally agree (gestures only!). I`m in the middle of making my Nexus 7 `gestures only`... and in the process , I`m getting more screen real estate (no more status/nav bar!). Great app!!
Hey Stupididea, Can you help?
All I want to do is simple snappy ios gestures.
5 finger pinch to home-close
4 finger swipe left or right to switch apps.
5 finger pinch to close-home is not in the default settings so I had to make a custom one.
Its works,.. after 8-9 attempts..
I think Im missing something here. Can you assist with a walk-through of reccomended settings for what im looking to do, or
perhaps update the next build with these settings as a default toggle?
Cheers!
deathshead said:
Hey Stupididea, Can you help?
All I want to do is simple snappy ios gestures.
5 finger pinch to home-close
4 finger swipe left or right to switch apps.
5 finger pinch to close-home is not in the default settings so I had to make a custom one.
Its works,.. after 8-9 attempts..
I think Im missing something here. Can you assist with a walk-through of reccomended settings for what im looking to do, or
perhaps update the next build with these settings as a default toggle?
Cheers!
Click to expand...
Click to collapse
What you wanna do is the following:
1. Go to custom gesture tab
2. press create gesture
3. type in your desired gesture name
4. type "P" (without quotes) in Gesture Path
5. select 5 touch points
6. Tap action type and select: Action -> Status Bar Actions -> Home
7. Hit "Save"
8. You're done!
I need to lay off the sauce.lol I just noticed the 4 finger pinch to close. Works great!

[Q] How to access core Android functions like app switching

Is there any way to access core Android functions like app switching (holding down the Home button for a few seconds), to be used in other contexts? Similar to how you can access Activities from the apps installed and use them as Shortcuts.
What I'd like to do is this:
press Home -> bring up app switching interface
long-press Home -> go to Home screen
Basically I want to reverse the two functions that short and long pressing the Home button does.
If not that, I'm also interested in being able to access the "app switching interface" via a Shortcut (like a Shortcut you place on your Home screen), or via an app.
For example, you can long-press on the Home screen and add a Shortcut (different than adding a shortcut to an App) which basically includes various context functions of some of the apps you have installed. I want to be able to do this - add a Shortcut - in which the Shortcut I add launches the "app switching interface" that you normally get by long-pressing the Home button. That way I can put that Shortcut in Wavelauncher or wherever else I want to be able to app switch without the annoyance of having to long-press something.
Maybe this kind of thing requires root and hacking, but that's why I'm here! I'd be grateful for any advice and help; thank you!
As far as I know you'll need a custom rom like cyanogenmod or aokp to do things like that.Being able to do that in a stock rom would compose of alot of work within the framework-res.apk, systemUI.APK, and button maps. To flash a custom rom require root and clockworkmod. I want to help you but first what type of device do you have?
eugeneeaster18 said:
As far as I know you'll need a custom rom like cyanogenmod or aokp to do things like that.Being able to do that in a stock rom would compose of alot of work within the framework-res.apk, systemUI.APK, and button maps. To flash a custom rom require root and clockworkmod. I want to help you but first what type of device do you have?
Click to expand...
Click to collapse
I'll be getting my new LG Optimus G Pro in a few days. I was hoping, if I can't reverse the functionality on the Home button, that I could maybe assign the "app switching interface" to the programmable button on the side. Thanks for helping out by the way.
Is your device rooted? Also thank me with the button
eugeneeaster18 said:
Is your device rooted? Also thank me with the button
Click to expand...
Click to collapse
I don't have it yet, but I would be willing to root it. I'm using my good ol' GS2 Skyrocket for the next few days until it arrives.
Well I have my Optimus G Pro and I've been using it for a few days. I saw an app by the makers of Tasker that allows you to build your own app. Could I possibly use that to accomplish what I want (build an app whose function is to show the "app switching interface" )? Or would I really need to root it (and if so, what then?)?

[Q] Changing the way zoom works on android.

Is there a way to change the pinch zoom, so the location and the gesture would be in a specific spot with specific motion to zoom in (go up) and zoom out (go down) like this:
http://i62.tinypic.com/ose3cp.jpg
and it would zoom in and out in the middle of a the screen kind of like google maps
If there is way how about presetting the zoom percentage so if my gesture idea worked I can preset the range of zoom . Would this work across the board or needs programming in each app?
If not, maybe there is a way to use a pie control where each section of the pie is mapped with a zoom function so you can progressively zoom in and out.
Cheers
There's no real way to do this universally -- each app must implement one touch zooming. I'd suggest contacting the apps' developers.

Using Shortcut Key For Camera Shutter

It seemed to me to be a massive oversight that the shortcut key could only be used to open apps & not perform actions within apps such as use as a camera shutter key.
With a bit of playing around with tasker, auto input & tasker app factory I now have something that works for me as a camera shutter key. This obviously opens up many other possibilities.
My question is has anyone else tried anything similar & would anyone mind trying the attached app? I'm still learning with tasker so I'd like to know if the created app would function as a standalone for people who don't have tasker or autoinput installed.
To test once installed select the app as the shortcut key setting then open the stock camera app & press the shortcut key.
Thanks in advance to anyone that trys it.
https://drive.google.com/file/d/0B4OrmULgDWq3ZGFxdWVLSHR2N2s/view?usp=drivesdk
Sent from my P9000 using XDA-Developers mobile app
Wow, that's really good. It could be fantastic using that key to use Now on tap without the virtual navigation bar
Edit: I've just try it with the camera app and is not working to me
Thanks for the feedback. I've not actually used the now on tap function yet but unless Elephone change how you can assign the button this seems like the best method for making it do what you want. Tasker's really versatile but I'm still learning so I know a lot of the stuff I do is a bit clunky. Personally I want it to be multi function so when the camera's open it's the shutter button but when it's not then I can use it for media control i.e. press once for pause, twice for skip track, 3 times for back track.
Sent from my P9000 using XDA-Developers mobile app
UnaiBoomer said:
Wow, that's really good. It could be fantastic using that key to use Now on tap without the virtual navigation bar
Edit: I've just try it with the camera app and is not working to me
Click to expand...
Click to collapse
That probably means you do require the autoinput plugin then. I've been playing around with now on tap & have managed to get it to work when you click on the app button I created but when it is assigned to the shortcut key it doesn't. It definitely needs the autoinput plugin with the method I've used. Going to make some posts in Tasker threads when I get chance to see if I can get suggestions on better ways to do it.
Sent from my P9000 using XDA-Developers mobile app
Did this move on any further? I wanted to give it a go, but the Google drive link isn't working.
As you say, massive oversight on the part of Elephone. I hadn't even thought of trying to use tasker.
loadedscissors said:
Did this move on any further?.
Click to expand...
Click to collapse
Unfortunately not. The issue with exporting tasker things to an app is to install it on another phone you require all of the appropriate plugins used within the task. It's certainly possible to do things with the shortcut key using tasker but I found most of the solutions convoluted for such a simple result so gave up on it.
Thanks for the reply. It's a shame to hear it was so convoluted to achieve, but thanks for trying.
I've been using Camera Zoom FX, if you set the exposure to +3 it gives comparable results to the stock camera app. The advantage of this app is that you can use the volume rocker as a hardware button to take pictures via an optional setting. There is a free version of this app as well I think, but I don't know its limitations. I think the functionality exists in some other camera apps too, including Google Camera, the thing is that most apps seem to have a noticeable reduction in quality vs the stock app.
I know it's not quite the result you were aiming for, but I hope that the information is of some use to somebody.

Categories

Resources