Hi,
It seems that this phone does not have a hardware keyboard at all. Or is there an axon mini variant that has a hardware keyboard like the blackberry priv?
Regards,
Martin
trigger when keyboard pops up
Moderator: Martin
Re: trigger when keyboard pops up
Sorry martin I misinterpreted the trigger then.
yes my phone is just a normal full touch screen one.
What I really needed was a trigger called "soft keyboard state/type" but If I remember you said you have no means to detect it for some reason.
Thanks a lot anyway
yes my phone is just a normal full touch screen one.
What I really needed was a trigger called "soft keyboard state/type" but If I remember you said you have no means to detect it for some reason.
Thanks a lot anyway
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: trigger when keyboard pops up
Seems, I've found out a way to detect the opening of soft keyboard.Martin wrote:Hi,
You could try to use trigger UI Event to trigger on all Window opened events of all packages (set package name to *). You probably have to use a condition Expression to check some of the provided variables to see if it's the keyboard or any other window, which indicates that the keyboard was closed.
Regards,
Martin
Trigger:- "UI Event", Event Type: "Window opened", Package Name: "com.android.inputmethod.latin" (or whatever is the name of the package of the soft keyboard that you're using on your phone).
Condition:- "Expression", source_class_name=="android.inputmethodservice.SoftInputWindow";
If this condition is true, it means that soft keyboard has just popped up.
Re: trigger when keyboard pops up
thanks for the suggestion, but the UI event trigger pointing to gboard doesn't kick in at all.
the only way to kick windo open event is if I leave * on the package name, and this means running the flow every second while using the phone. I prefer to avoid this excessive triggering at all.
thanks again
the only way to kick windo open event is if I leave * on the package name, and this means running the flow every second while using the phone. I prefer to avoid this excessive triggering at all.
thanks again
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: trigger when keyboard pops up
HeyLED wrote:thanks for the suggestion, but the UI event trigger pointing to gboard doesn't kick in at all.
the only way to kick windo open event is if I leave * on the package name, and this means running the flow every second while using the phone. I prefer to avoid this excessive triggering at all.
thanks again
May I know what flow are you trying to design using the trigger "Keyboard Pops Up"?
Thanks
Re: trigger when keyboard pops up
I cant send you the flow because it is totally interconnected with many others.
However the purpose of it, is to detect the keyboard opened, then show a few overlay widgets with the buttons copy,paste, select all while I type.
this means that I can select all avoiding having to long click the text at all. really handy for many reasons. one of them is that some text fields are unselectable, but automagic is so powerful that is simply does the job anyway.
But for now, the flow doesn't matter, I can test with an nearly empty flow, just the trigger and, lets say, a sound to check the flow ran. But it seems impossible the way I wanted to.
Regards
However the purpose of it, is to detect the keyboard opened, then show a few overlay widgets with the buttons copy,paste, select all while I type.
this means that I can select all avoiding having to long click the text at all. really handy for many reasons. one of them is that some text fields are unselectable, but automagic is so powerful that is simply does the job anyway.
But for now, the flow doesn't matter, I can test with an nearly empty flow, just the trigger and, lets say, a sound to check the flow ran. But it seems impossible the way I wanted to.
Regards
-
- Posts: 109
- Joined: 16 Apr 2014 04:57
Re: trigger when keyboard pops up
If you don't mind, you could send me the flows and I could try my hand at improving them. In order to send all the interconnected flows, first select all the flows (by long pressing on each, of course). Next go to the options menu in Automagic and select "Send Flows/Widgets". On the next pop up menu, select "Store As File" and finally store that file in your sdcard.
This way a single .xml file will be generated that contains all the flows you had selected. Send me that file and I'll try some workaround.
This way a single .xml file will be generated that contains all the flows you had selected. Send me that file and I'll try some workaround.