[Q] Create a program like SwiftKey - General Questions and Answers

Hello all,
I am an amateur programmer. I want to create a Keyboard Input Program in Android like Swiftkey The program, in general, is a "special keyboard" will be invoked whenever Users use keyboard. The "special keyboard" is a panel include a lot of "buttons" create at run time. And Users can "swift" to select a "button" like Swiftkey.
I have few question want to ask:
1-What should I use to create the program? "GridView + Button" or Open GL. I should consider it as a GUI or a graphic program.
2-How can I "hook" keyboard calling method? Whenever keyboard method called (ex, press Google search box), my program will call instead of default keyboard.
3-How can I implement "swift" feature?

Related

Different keyboards in different programs?

I use the HTC Diamond and wonder if there is a solution to the following:
When I write an SMS i like to use the "phone keypad", but when I'm in Word or Opera I like to use the full keyboard.
When I change the keyboard I do so for all programs (The keyboard is "Global"), but what I'd like was if the keyboard selected was for the program I was in ("Local" selection of keyboard). This would make things a lot more easy.
Is there already en option making this possible?
Is there software around fixing this?
ofnilsen said:
I use the HTC Diamond and wonder if there is a solution to the following:
When I write an SMS i like to use the "phone keypad", but when I'm in Word or Opera I like to use the full keyboard.
When I change the keyboard I do so for all programs (The keyboard is "Global"), but what I'd like was if the keyboard selected was for the program I was in ("Local" selection of keyboard). This would make things a lot more easy.
Is there already en option making this possible?
Is there software around fixing this?
Click to expand...
Click to collapse
Welcome to the forum
Do a search for SIP changer, install it, then open in programs and select your desired permanent keyboard.
Good luck and enjoy!

Apps automatically using different keyboards?

I know you can switch keyboards by tap-holding on the text field and tapping on the desired keyboard.
What I'm looking for is a way to switch the keyboards automatically based on the app being used. The only reason I want this sort of automation is because I'm using Google's ASE app, and the interpreter panel / interface doesn't allow switching keyboards. It does not pop up with the menu to do so after tap-holding.
Right now I have to switch to another app, switch keyboards, switch back to ASE, re-open the interpreter, and then start typing. In ASE I would prefer to use Android's native keyboard, while I use Swype for everything else.
Great question
I'm looking the same app too.
This why I prefer to use phone keyboard for sms' and mails but no for internet surfing, market, and other apps...
Is there any way to make app-keyboard association?
I'd really like to see this as well. I use one keyboard when writing text messages and another keyboard for all other applications, this due to no keyboard supporting all the languages I write in. An app that changes keyboard when you open/close a specific app would be great!

[IDEA] Keyboard switcher

It would be great to have a possibility to choose one keyboard for portrait mode (for example: swype) and the other for landscape one (for example: htc_ime).
Swype is great in portrait mode, but it sucks in landscape one (too large distances between the letters, swyping is slower than two hands typing, and a 'normal' typing using swype keyboard's layout is not so comfortable).
What do you think? Is it possible? The time to switch between keyboards wouldn't be too large? Memory utilization would be small enough?
Not sure if it is possible but I personally would also like the option to set the default keyboard per applications.
Why stop there? Would be great if there was a way to swipe through different keyboards in any app. Then you could just pick the best one for your current application. Of course the above feature would be great to have included with this.
Maybe some dev will pick up on this. Agree that it would be nice to have.
AverageCanadian said:
Not sure if it is possible but I personally would also like the option to set the default keyboard per applications.
Click to expand...
Click to collapse
+1. i would love to use the Graffiti keyboard for some of my medical applications as the swype keyboard is useless when it comes to hunt & peck typing of words that aren't in its dictionary.
pavulon said:
It would be great to have a possibility to choose one keyboard for portrait mode (for example: swype) and the other for landscape one (for example: htc_ime).
Click to expand...
Click to collapse
+1!! great idea dude!!
how bout swype on the stock 2.2 keyboard mixed with htc_ime compact qwerty ???? FLAWLESS . "BEST" Keyboard EVER !
but swype + stock 2.2 keyboard,, would be a great thing !
Google get ON THAT ! pls
agreed a mod would finaly help bring the greatness of swype in portrait and HTC_IME in landscape would be amazing...
only issues i see coming from this is how will the OS juggle the two keyboards ?
this makes me jealous of people that have a keyboard android phone.. they can use swype and the default keyboard and not worry about the landscape swype.
It's been asked/suggested many times but it's simply not possible.
In Android, you cannot change input method (keyboard) without user interaction for security reasons. Think about it this way; would you want a malicious app that mimics the exact look/functionality of your keyboard, except that it logs/steals your every keystroke and is automatically enabled as the input method without you knowing it?
The security is in place to prevent that exact type of situation.
Minor correction/clarification. A third party app cannot switch input method automatically. Which means, creating an app to let you customize what keyboard to use in what orientation/app/etc simply cannot happen. A keyboard can, however, programmatically switch itself to another keyboard on a given event. The only way this could ever happen would be for both keyboards you wanted to use to have this functionality built into it (ie, htc_ime keyboard knows to switch to swype when going from landscape to portrait and swype switches back to htc_ime in the opposite). Given that these are both closed source keyboards (granted, htc_ime mod rocks) this will likely never happen unless the developers themselves were to do it (especially since we can't post swype apk's anywhere).
From: http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html
A client application can ask that the system let the user pick a new IME, but can not programmatically switch to one itself. This avoids malicious applications from switching the user to their own IME, which remains running when the user navigates away to another application. An IME, on the other hand, is allowed to programmatically switch the system to another IME, since it already has full control of user input.
Click to expand...
Click to collapse
Is it impossible even on a rooted phone?
pavulon said:
Is it impossible even on a rooted phone?
Click to expand...
Click to collapse
Unless you are running a custom Rom that specifically removes or bypasses that type of security (which would be foolish IMO) then the exact same restrictions from my previous post apply. It would take some serious core changes for this to ever be possible.
I know it isn't exactly what people are requesting, but what about a shortcut it widget that brings up the manual keyboard selection dialog? You could then map that to the long press search action our something similar. Maybe have it stay resident in the notification area so you can change keyboards on the fly without having to be in a text dialog. My main use to switch is when I am in a terminal window, which requires me to close out and bring up the search dialog, long press, change input methods, go back to the terminal... Pain in the ass, since Swype can't delete in a Connectbot shell one typo means going through that process to switch to Better Keyboard so I can complete my task.
daveid said:
I know it isn't exactly what people are requesting, but what about a shortcut it widget that brings up the manual keyboard selection dialog? You could then map that to the long press search action our something similar. Maybe have it stay resident in the notification area so you can change keyboards on the fly without having to be in a text dialog. My main use to switch is when I am in a terminal window, which requires me to close out and bring up the search dialog, long press, change input methods, go back to the terminal... Pain in the ass, since Swype can't delete in a Connectbot shell one typo means going through that process to switch to Better Keyboard so I can complete my task.
Click to expand...
Click to collapse
This is possible. A third party app can trigger the choose IME dialog to pop up. I'll try to throw something together this afternoon. You could then use an app like bartender, quickdesk, etc to setup easy access to it.

dock keyboard and non-OEM tab keyboard challenge

I use the Float n Split keyboard on my Inifinty and of course when the tab is docked, it wants me to change the keyboard to the stock ASUS keyboard. While a minor chore, it is a chore nonetheless. I have tried to use Tasker to automate the change to settings but i am cannot create a action that works. In fact, I'm not sure where to begin with Tasker.
Has anyone figure how to automate this task with Tasker or any other utility?
cheers,
mordo
Have you tried not changing back to the ASUS keyboard and ignoring the message? I use Thumb Keyboard, and when I docked the first time with it it asked me the same thing, to change to the ASUS stock keyboard. I ignored it and the dock keyboard still works flawlessly.
Look in the prime form for a similar question, there was an App to automatically switch keyboards. Alternatively if you are into the whole tasker thing, this is a simple script that could be written to switch between keyboards when docked and undocked...
Yes, I've ignored the alert that the keyboards don't match. In some apps, the soft keyboard appears while typing on the dock keyboard. This is a problem as it obscures what I'm typing.
I imagine it is a simple script but I'm at a loss to know how to create it. I hoped that someone had such script, I could learn quickly rather than running through tutorials in Tasker.
cheers,
mordo
EDIT: Thanks, I found the thread in the Prime forum. Tasker requires a paid plugin. This explains why I couldn't find the solution in Tasker. Also, the other app referenced was "Keyboard Manager:.
drherron said:
Look in the prime form for a similar question, there was an App to automatically switch keyboards. Alternatively if you are into the whole tasker thing, this is a simple script that could be written to switch between keyboards when docked and undocked...
Click to expand...
Click to collapse

[Q] Looking for an app/widget that I can program custom "keyboard shortcuts"

I would like to be able to save a custom keyboard command, for example, CTRL + /, so that, for example, if I'm using Figma on my touch device (within the browser), I can hit this button and that keyboard shortcut will be "executed". In this instance, for Figma, it would toggle all of the UI and leave just the canvas.
Does such an app/widget exist?
denno020 said:
I would like to be able to save a custom keyboard command, for example, CTRL + /, so that, for example, if I'm using Figma on my touch device (within the browser), I can hit this button and that keyboard shortcut will be "executed". In this instance, for Figma, it would toggle all of the UI and leave just the canvas.
Does such an app/widget exist?
Click to expand...
Click to collapse
The Figma app should support it, right?
Im not sure about anything else that can trigger UI elements.
Unfortunately I don't have access to the Figma app (it's in closed beta), I'm just trying to use it in the browser
denno020 said:
Unfortunately I don't have access to the Figma app (it's in closed beta), I'm just trying to use it in the browser
Click to expand...
Click to collapse
Tried here?
Keyboard shortcuts for Figma
A visual cheat-sheet for the 119 keyboard shortcuts found in Figma
usethekeyboard.com
It has that.
If you have a physical keyboard it mught work.
Thanks Kenora, I'm trying to avoid having to connect physical keyboard .
I'm looking to use Figma in the browser on my Galaxy Tab. I can trigger the Toggle UI shortcut by pressing and holding on the background, but am hoping for a quicker way to trigger that function
denno020 said:
Thanks Kenora, I'm trying to avoid having to connect physical keyboard .
I'm looking to use Figma in the browser on my Galaxy Tab. I can trigger the Toggle UI shortcut by pressing and holding on the background, but am hoping for a quicker way to trigger that function
Click to expand...
Click to collapse
Hmm y don't you get a virtual keyboard that has ctrl alt and stuff like that.
Sure there's one on the internet.

Categories

Resources