Lekhnath
Lekhnath

Reputation: 4625

Changing the Keyboard for Specific App on Android


I am developing a "Nepali Dictionary Android App" using Cordova. Using jQuery I have been able to map the keyboard character to Devnagari. For example If you pressed the 'k' from keyboard 'क' will be displayed in editable text inputs. Now , I am trying to change the keyboard characters so that the users could see Nepali characters in keyboard.

I don't know If it is possible or not, but I think it should be. I am not a java programmer and using cordova api to build the android applications. I am also planning to create MultiKeyboard Phonegap / Cordova Plugin for android (in future ) if It is possible.

My Question is : How can I change the android keyboard characters for some specific apps ?

WHAT HAVE I TRIED

I have not started coding for this because I don't know if it is possible or not. Please show me the right way.

Thanks.

Upvotes: 0

Views: 895

Answers (1)

mgokgoz
mgokgoz

Reputation: 186

You could change char value with different value if the given input values will not be used. What i mean is if 'k' will never be used you could catch that input in for example

var tempChar;

variable and swap it's value from a HashMap, but I don't know if you can change the layout of keyboard using PhoneGap only. If you can't do, you can draw your own keyboard using jQuery Mobile if there is way to disable Android keyboard for your app.

Upvotes: 1

Related Questions