yashsingh1/xdaforums huggingface dataset:
[Android Software Development] noname81:
v0.4 uploaded! See first post. I had to modify the gesture recognition code a little bit and I was only able to test the changes on the Evo3D and Sensation. So can you please test the version on the other supported phones and give me a short feedback? Thanks!
[Android Software Development] ephestione:
Confirm app selector in 0.4 working on note, the associated application starts on gesture, a proper update would be to order the applications by name, since I couldn't find in two scrolls the one I was looking for ;)
[Android Software Development] noname81:
Yeah! Should be easy to do... Merry christmas!

Sent from my HTC EVO 3D X515m
[Android Software Development] fclifton:
Merry Christmas! I have just started to try this out on my Galaxy Nexus running ICS 4.0.2. As of yet, no joy, but I have only tried a couple of Input Devices so far. (Someone else had it running on ICS so I have high hopes it will work) If it is ok for a newcomer to make suggestions, I have a couple:

1) On the Input Device list, put in the devices known to work with that Input Device setting.

2) On the gesture symbols, mark the starting point with a dot or something, maybe even a colored dot.

3) Is there some way to put in the settings a place to tap to determine that the TouchService is running? It looks like in previous posts it may take a few attempts starting and stopping, and a place to touch for immediate feedback would be nice. (I say this because as I am trying different Input Devices, I am not even sure that the service is running)

Thanks,

Frank
[Android Software Development] noname81:
Merry christmas! :) if you have root, please download a terminal (e.g. terminal emulator) from the market and enter su and then getevent. After that just touch the screen and you should know/see your input device... ;)

If it is not working afterwards just pm me...

Sent from my HTC EVO 3D X515m
[Android Software Development] regis.stration:
Feedback: 0.4 working on my ATT Motorola Atrix 4G, using Input Device 5

So far I've launched 2 apps. using single touch square, and double swipe up. Need to find where I listed my mappings from my WM days.

Keep up the great work!
[Android Software Development] noname81:
Great! Another device where LMT is working on... l'll update the first post...

Sent from my HTC EVO 3D X515m
[Android Software Development] Bejda:
Hello,all seems ok with sgs I9000 input device 8 :)

Only thing is swype gestures works only as Dual touch gestures and the 4 commands where i have to swype right then left/left then right/up then down/down then up are not responding even in a dual touch way,hope i'm not misunderstanding the way it should work...
[Android Software Development] nidlaX:
Hey noname81, thanks for this very useful port! For the Touchpad, I checked using getevent and the correct device number was 6 for me. Thanks again, and have a great new year!
[Android Software Development] noname81:
Hi, swypes are only supported as dual touch gestures. A single touch swype would too much interfere with your normal scrolling behavior, etc. But if the "simple" swypes are working, then there should be no problem with e.g. the double swipe updown!? Just connect an action and then swipe first up with both fingers and without releasing the fingers down again...

Sent from my HTC EVO 3D X515m
[Android Software Development] Bejda:
Ok,works like this,sorry if I didn't read enough...so fully working on sgs I9000 :) nice feature,thanks for your great job!
[Android Software Development] noname81:
Thanks! Good to know that it is working now... :D
[Android Software Development] loliman:
Not working on GN.. :( tried every device a few times (including start/stop service multiple times), but still no success. Getevent tells me it is device 6 that "should work".
[Android Software Development] noname81:
Hm, there was also another user testing LMT on the Galaxy Nexus without success. I can only help you if you do the following:

- Install catlog from market

- Record with catlog the following procedure:

- start LMT

- set input device to 6

- Set single touch gestures to 777

- Start the TouchService

- Do the double swipe up gesture on the screen

- Stop the TouchService

- Send me the logcat... ;)

Thanks!
[Android Software Development] noname81:
Really? What device? When I check it here on the GNex with JB I see the animation in both orientations...
[Android Software Development] :
Same device, GN with 4.1.1. Restarted the phone to check and no change.

I've changed the inner/outter diameters and colors from default. Not sure if that helps track down the problem.

edit: It appears to only affect the right side in landscape mode. -_-
[Android Software Development] zombioptic:
I have made mine yellow opaque and I am seeing the animations fine in both screen orientations.
[Android Software Development] :
noname, found the problem.

Anything above 670 in height for the activation area will not show the pie animation in landscape mode. Actually it will, but only on the first use, then it reverts back to sliding in.

Oddly enough this only affects the right side of the screen.
[Android Software Development] amathophobia:
Haven't logged into xda in probably a year but had to today to say thank you so much. Best thing ever! Let's me use all of my beautiful galaxy nexus screen. But it seems to eat battery for breakfast. Am I doing something wrong? Keep up the good work!
[Android Software Development] noname81:
All lmt's features are designed to wait blocked and not to run in the background until the user activates them. So there should not be a battery problem at all. Are you really sure it's lmt?

Sent from my Galaxy Nexus
[Android Software Development] amathophobia:
No I cannot be sure. I will let it ride for a few days just to be sure what it is. I will let you know if it does seem to be lmt. Thank you for the quick response and thank you again for lmt.
[Android Software Development] randommmm:
Glad that I can set the animation time to 0 turning off the animation. A little disappointment about still can notice the delay of going HOME, not to say Back and other gestures. You should really try out Talkback in accessibility in JellyBean. ( Talkback has been with Android for a while but only JellyBean add gesture for HOME, BACK, TASK Switch and Notification. ) It's open source.
[Android Software Development] noname81:
Are gestures working for you? Choosing the wrong input device for gestures is the only thing which could lead to higher battery drain..

Sent from my Galaxy Nexus
[Android Software Development] nklenchik:
Honestly this (1.5) is the best release. Love the new animation and love that you're supporting the Nexus 7
[Android Software Development] dakunesu:
the only thing I can think of is using root to determine this, or maybe if there's specific accessibility API events when typing on the keyboard but that can be iffy

edit: actually, an app called swipe pad works around something like this by introducing a delay. if you tap the region and make no selection you can tell the app to let the next touch for the next second or so to pass through.

another possible solution with the app already having root access, you could translate taps(like if typing on keyboard) to a touch event and resend the touch. effectively your app would send the touch event if a tap was detected, but if the user slides your app would then eat the touch like normal
[Android Software Development] formula84:
Seems like a very interesting app, i installed and am starting to play around with it. Is there anyway to get it to initiate a shortcut like you get when you longpress on nova? Shortcuts have useful things for many apps I have installed and i can't seem to find a way to start them with this app. An app i can see this really being important on is Nova itself...there are several useful shortcuts (App Drawer, Toggle Notification bar, Expand No, etc.)
[Android Software Development] noname81:
Hi, this is still on my todo list...
[Android Software Development] formula84:
Awesome it will be a great addon... is there anyway to launch a shortcut via script as a temporary work around?
[Android Software Development] volcs0:
Any way to backup pie settings?

Every time I do a clean install, I lose everything. Is Titanium Backup the best way? I looked through the file tree and can't find where the settings are...
[Android Software Development] noname81:
Yes. TB will store all settings. The settings are stored "the android way" in /data/data/com.android.lmt/shared_prefs/...

Sent from my Galaxy Nexus
[Android Software Development] ngh55:
Confirmed working on the EVO 4G
[Android Software Development] TotalD3str4ct:
The shortcuts that are offered by different apps, and the internal commands of Nova are two different things I think.

I only used Nova for a brief time, but I don't think that the Nova shortcuts are listed among the other shortcuts from other apps, so you won't be able to assign them in LMT.

The reason is, that the Nova shortcuts are probably calling internal methods, so it is not possible to call them from other apps.

Regular shortcuts are calling android intents. If you want to run them via shell scripts, you should get know exactly what intent the given shortcut is calling (eg. via logcat), then start that intent with the "am" adb shell command.
[Android Software Development] amathophobia:
I do not use the gestures. I've just been using the pie. Is there something I need to disable?
[Android Software Development] noname81:
Then set the correct mode (2/pie only) that gesture recognition engine is not even started...
[Android Software Development] MysticGolem:
Yes I've noticed this as well.

Sometimes I will have to press on recent tasks twice in order to make it work.

Here's how I can trigger that issue.

1. Open an app using LMT

2. Press home on your LMT

3. Press Recent Tasks on your LMT

4. It will not open.

6. Press Recent Tasks again on LMT and now it opens.

I have explained this to noname and he did respond back, but I don't remember it and it is someone here in this thread.
[Android Software Development] IronTechmonkey:
Not happening on CM11 KK here. Could it be caused by the presence of another pie control in the ROM?
[Android Software Development] cro_nix:
App issues

First of all thanks for the awesome app. The app is very good but has small issues

1. Back command sometimes doesn't work. I usually swipe to the pie item with back button trigger. But sometimes it doesn't work and I have to repeat the process. To debug this problem would be nice to have feedback on command activation (similar to long press)

2. Last app command behaviour could be adjusted.

For example if I switch from app A to app B then exit app B I'll be back in app A but Lastapp button will not work. Wouldn't it be better if it would switch previous app (i think this is how last app works in gravity box pie controls)

3 Sometimes then I activate pie controls I see something like resizing interface for pie controls http://imgur.com/RztRA2f but it doesn't perform any function
[Android Software Development] IronTechmonkey:
Your questions are answered in the previous few pages of this thread but to give you a general framework before you do the research:

This may be glitch in Lollipop (described in the last few pages). Does not happen in my CM11 KK.

I remember the previous, next, and last app commands acting funky like that. As a workaround I use previous and next from LMT Pie but use long press recents to do a dedicated toggle between 2 apps (long press recents may be Cyanogenmod specific but I would love it if LMT could do that).

That thing is called Pie Pointer, which you can use to interact with the device as if by screen touching at the small circle along the arc. I don't use it but there are configuration options for it at the bottom of the settings page and probably more descriptions about using it in this thread.
[Android Software Development] cro_nix:
Thanks
[Android Software Development] ghost141:
IT consume battery a lot huh :3
[Android Software Development] themachinist:
Does the press and hold code for keycodes work? I tried 2000+26 to emulate long pressing the power button. Doesn't work. Using keycode 26 by itself works.
[Android Software Development] antonio1475:
Hi,

I'm creating a file that looks like this:

#!/system/xbin/sh --> also tried /bin/, but busybox was installed on xbin
adb shell input keyevent 25

on /data/keyevent.sh and set permissions to 755

Then, on LMT i choose Script and write /data/keyevent.sh but nothing happens. Does somebody know why?

I know there is a Keyevent option. I want to start with the basics, and then create a script that runs a keyevent and then a "adb shell input tap 140 200", so the Keyevent LMT option isn't valid for this.

Thank you :)
[Android Software Development] noname81:
Just remove adb shell in your script. Adb is a host tool and when you write:

Adb shell input x

it means on your host: Adb, please create a connection to the phone, open a shell session and execute the command input x. In scripts running on your phone just remove adb shell.

You can also write shell commands directly in lmt's script window instead referencing a shell script. Just try it with putting "input tap 140 200" directly into the window in lmt...
[Android Software Development] noname81:
No... Is it showing up in your battery stats?
[Android Software Development] antonio1475:
Thank you for answering! However, if I write:

input keyevent 25 (volume down, working via adb shell on computer)

it doesn't do anything anyway :crying:
[Android Software Development] noname81:
If i do it on my phone (I just tried it), it's working. Does lmt have root permissions?
[Android Software Development] antonio1475:
It does. I'm on Lollipop, may it be the problem? Everything else seems to work. Should I provide you a logcat or anything that can help you?

Thank you :)
[Android Software Development] noname81:
I'm also on lollipop. Perhaps a logcat would help...
[Android Software Development] antonio1475:
Attached! Look for input tap 500 1 :)

Also tried "su input tap 500 1".

EDIT: Nevermind, found it. Didn't know I had to convert from hex to decimal and get this run for longpress power button = show power menu:

sendevent /dev/input/event0 0001 116 1
sendevent /dev/input/event0 0000 0000 00000000
sleep 2
sendevent /dev/input/event0 0001 116 00000000
sendevent /dev/input/event0 0000 0000 00000000

Anyway, thanks a lot! LMT proved to me it was possible, so I eventually figured it out! :D

Just fyi: My intention is not to have LMT (though I've used it in the past and love it, but trying to keep things to minimal right now), but I bumped into it when trying to run shell commands to show the Power menu, which only LMT is able to. I would infinitely thank you if you could tell me which commands/sendevents I would have to use in order to show the Power menu.

The most I got was this (using getevent):

/dev/input/event0: 0001 0074 00000001
/dev/input/event0: 0000 0000 00000000
/dev/input/event0: 0001 0074 00000000
/dev/input/event0: 0000 0000 00000000

And this monitoring what happened when I click Power menu on LMT:

android.app.ContextImpl.sendBroadcast:1348 hk.kennethso168.xposed.apmplus.XModPM.passBackData:183 hk.kennethso168.xposed.apmplus.XModPM.access$1800:66 hk.kennethso168.xposed.apmplus.XModPM$6.afterHookedMethod:511 de.robv.android.xposed.XposedBridge.handleHookedMethod:669
D/apm+/mr ( 8735): hk.kennethso168.xposed.apmplus
D/apm+/mr ( 8735): stockSeq= 1 71 3

Really sorry if this is considered off-topic, and thank you :)
[Android Software Development] noname81:
You try to keep things minimal and have xposed installed!? :D
[Android Software Development] Mao04:
Just checking. You know it's "2026" not "2000+26", right?
[Android Software Development] IronTechmonkey:
I thought the power menu code was 1026

[EDIT While I'm at it , might as well slip in a question.

Is there any code or command that would replicate longpress recents?
[Android Software Development] noname81:
Just check the OP's FAQ section (key actions).
[Android Software Development] IronTechmonkey:
If we are talking about the thing where you should be able to qualify/modify a key code (in this case recents) for long press, I tried that but did not get it to work and assumed that something about the way CM was tweaked to respond to long press recent might be interfering. The truth is I can use Pie's native app navigation just fine but will give the code another go. Thanks.

[EDIT]

I think I found the limitation, at least mechanically if not programmatically. The code for recents is 187. In CM, long press recents invokes direct app switch after a set (short) period of time but does not require releasing the button. In LMT the modified key codes "... press and hold the key for 100ms/600ms/1000ms and then release it" So I would guess the the limitation is in the difference between "long press" and "long press and release". That said, I've still got options.
[Android Software Development] antonio1475:
Well, not anymore. I just needed a certain module for the power menu for a few days, but not anymore :victory:

Keep up the good work and thank you, LMT is one of the great things of Android! :)
[Android Software Development] themachinist:
Yup. Which doesn't work. Tried the sendevent variation, works when I run it from the terminal emulator, but not when I save it as a script.
[Android Software Development] kitecarl:
Open Google Now without Keyboard

Seriously fantastic app - it's changed the way I use my phone. One quick action I'm trying to figure out - I'd like to open up Google Now with one of my longpress actions, and can get it to open now with the Search "normal command." Only problem I'm having with this is that it's then bringing up my keyboard expecting me to key in text for searching. What I'd like to see instead is just my Google Now cards and the search button, without the the keyboard displayed.

Anyone have this setup that's working for them? Thanks!
[Android Software Development] jaxxes:
Just have it open the Google app? That comes up for me without the keyboard.
[Android Software Development] kitecarl:
Thanks, but forgot to say in my original post that I've tried this (assigning via Open App to open Google App com.google.app.googlequicksearchbox) but it doesn't work for me. Might be because I'm using a different launcher (Action Launcher Pro)?
[Android Software Development] hovanhuang:
[MENTION=1864347]noname81[/MENTION]

My lmt keep restarting randomly from what I can tell. Using cm12 resurrection d800. Is that a supersu problem or lmt issue? Didn't have this problem in KK. Thanks.
[Android Software Development] noname81:
Which version of lmt? Is lmt stuck after restarting? Then try out the latest beta...

Regarding the root cause of the restarting: lmt is configured as a foreground service and normally Android should only kill and restart them to free up space when nothing else helps!

But memory management is broken in lollipop. This seems to be related to the memory leak bugs in lollipop. A lot of other apps are also suffering from this problem. Happy reading... :D

https://code.google.com/p/android/issues/detail?id=79729
[Android Software Development] RaymondPJR:
Have you tried 'Trigger an arbitrary activity' (choosing something other than Google quicksearch box?) There should be several other options to choose from.

All I did was choose 'Open an arbitrary app' then tapped the Google search icon from the drop down list of apps.
[Android Software Development] hovanhuang:
Thanks noname. I think you are correct. In my case, not just lmt is restarting but many other apps.

The logcat captures all the restarting moments. See if you can confirm your theory for me. Thanks so much.

https://www.dropbox.com/s/4rff3ou946umji4/2015-02-23-11-20-28.txt?dl=0
[Android Software Development] noname81:
Yes, this I exactly the problem. Hopefully it will be fixed in Android 5.1...
[Android Software Development] awakener777:
Guess I've been fortunate not to experience this.
[Android Software Development] maxiv:
This.

SO MUCH this.
[Android Software Development] Recognized Noob:
[MENTION=1864347]noname81[/MENTION] i was wondering, if u could add an option to show pie on swiping from edge as it is in cm roms, instead of simply touching in the trigger area. With bezels becoming redundant, i have difficulty holding the phone without my touch opening the pie. can you look into this?
[Android Software Development] IronTechmonkey:
It looks like Cynogenmod is adding to this functionality in CM12, which may in turn mean that the method by which this works becomes usable by other Devs and apps. Two very recent commits have to do with user configuration of the long press recents intent and pluggable implementation.

http://review.cyanogenmod.org/#/c/88730/

http://review.cyanogenmod.org/#/c/88742/

Perhaps this means that sometime soon we may be able to do this with codes or that it will become native to LMT Pie (not an ask ;)).
[Android Software Development] hydroxymoron:
lag executing tasker task

When I trigger Home Key and a Tasker task (lockscreen) through the pie, one immediately after the other, there is a lag of a few seconds before the Tasker task executes.

The commands trigger nicely in other scenarios, but since the lag is huge and it is a combination of pie commands that I use continuously, I would really appreciate that this gets fixed.. Thank you
[Android Software Development] je55ter:
Not Centered option

Can you please separate the "Not Centered" option from the "Pie Position" settings so I don't HAVE to have the pie active on all edges if I want it not centered?
[Android Software Development] jaxxes:
What..? Are you using the same program? These options are separated and extremely customizable right on the settings page under the heading 'pie activation'.
[Android Software Development] je55ter:
I just updated to 2.3 today, and nope those options are still not separate. Haven't tried the beta, but I didn't see any mention of that change being included. The attached screenshot shows what I'm talking about. That bottom option is the ONLY way to get the pie not centered.
[Android Software Development] jaxxes:
Okay, I see what you're talking about but can't say I ever paid attention. If you don't want the activation area centered, check out 'activation area gravity' which let's you choose top, center, or bottom. You can also adjust the length to hit whatever sweet spot you want for activation. Works whether you have the pie on one, two, three, or all sides.

Otherwise, I'm not seeing a difference with the 'not centered' option as compared to any other. Am I missing something?
[Android Software Development] je55ter:
"Pie gravity" and "Not Centered" are two very different options. For one thing, Pie Gravity only applies when the pie trigger is on the sides. I want to use the pie on the bottom edge only.

Additionally, pie gravity sets the exact position where the pie always appears. That's exactly what I don't want. I want the pie to appear wherever along the given edge that it's triggered. This isn't much of an issue on a phone, but on a 10 inch tablet, it's a big deal. If I'm holding my tablet in landscape with both hands in the bottom corners, and I drag my right thumb up from the bottom edge near the lower right corner, I want the pie to appear right there, not in the center of the bottom edge where I have to stretch my thumb just to reach it. The "Not Centered" option allows this, but it only works of you turn on the pie on all three edges. This interferes with other apps I use that have swipe on from the edge gestures. I want the pie on the bottom edge only.