Android Question How to create my own Keyboard?

joaquinortiz

Active Member
Licensed User
Longtime User
Is there a class or code snippet to create our own Keyboard, instead of using the defaults?
 

ilan

Expert
Licensed User
Longtime User
Is there a class or code snippet to create our own Keyboard, instead of using the defaults?

do you mean a custom keyboard that you will use only in your app?
or a system keyboard where you install it to android system and other apps can use it?
 
Upvote 0

edgar_ortiz

Active Member
Licensed User
Longtime User
I'm Sorry Edgar. I'm not really following you!. What do you mean?

You want a "own" keyboard for application.


So, add an "activity module" to your project, where you define the keyboard you want to use and call it whenever necessary.

In fact the most "decent" thing would be to make a class and call it when you need it (on click of each field)
 
Upvote 0

joaquinortiz

Active Member
Licensed User
Longtime User
You want a "own" keyboard for application.


So, add an "activity module" to your project, where you define the keyboard you want to use and call it whenever necessary.

In fact the most "decent" thing would be to make a class and call it when you need it (on click of each field)

But I don't know how to add a keyboard. I don't get it.

Thanks anyway Edgar.
 
Upvote 0

edgar_ortiz

Active Member
Licensed User
Longtime User
But I don't know how to add a keyboard. I don't get it.

Thanks anyway Edgar.

1 - Just out of curiosity ... why do you want your own keyboard?

2- Let's figure that you want to make an application for those who only speak "Klingon" ... then you do an "activity" called "my keyboard" with its respective "layout" and define the "symbols" and you go capturing the "symbols" selected by the user. ..

At the end you save all symbols in a "global" variable.

Note:
every time the user clicks on a field, you call the activity "my keyboard"
 
Upvote 0

joaquinortiz

Active Member
Licensed User
Longtime User
1 - Just out of curiosity ... why do you want your own keyboard?

2- Let's figure that you want to make an application for those who only speak "Klingon" ... then you do an "activity" called "my keyboard" with its respective "layout" and define the "symbols" and you go capturing the "symbols" selected by the user. ..

At the end you save all symbols in a "global" variable.

Note:
every time the user clicks on a field, you call the activity "my keyboard"

The reason is because the user will input data in an edittext and he has to be able to type(click) any key related to the edittext. In this sample is related to a production process in a manufacturing company and the value belong to this process. Thats why.

I starting get in you...So I need to build my keyboard with buttons and each clic is a letter for example.

I'm not quite sure open a new activity and then go back to the activity where was called. I think its not friendly to the user.

I knew that there are software that can create their own keyboards. That's why I asking if B4A can handle this function!.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
don't add another activity. create a custom class and create a layout for your keyboard with the designer. then you just load your class to your activity. there are maybe million examples on how to do that.
 
Upvote 0
Top