Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
micrcx
Posts: 17
Registered: ‎03-09-2012
My Device: playbook
My Carrier: I don't know
Accepted Solution

Creation of virtual keyboard

Hi,

 

Sorry for the indiscreet question. Whether there is the ability to create your own virtual keyboard, which replaces the standard? To draw an analogy with the Android OS, that is, a way to replace the standard input method? For instance write your own input method. If so, could not, would you indicate how?

 

Regards,

Mk

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Creation of virtual keyboard

There are no APIs that would allow anything like this and, at least for now, it's simply impossible. Consider posting a feature request in Jira if you think it's a valuable enough idea, including a detailed use case or cases to describe how it would be of use to people.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Contributor
micrcx
Posts: 17
Registered: ‎03-09-2012
My Device: playbook
My Carrier: I don't know

Re: Creation of virtual keyboard

If it's not a secret, Jira - that is it?

Please use plain text.
Developer
obone
Posts: 162
Registered: ‎01-11-2012
My Device: BlackBerry 9790, BlackBerry PlayBook 64Gb, BlackBerry 10 Dev Alpha
My Carrier: MTS

Re: Creation of virtual keyboard

Hi Mk,

https://www.blackberry.com/jira
Respectfully,
Oleg

Developer, QNX RTOS, BlackBerry 10 and PlayBook
Follow me on Twitter (in Russian)
St.Petersburg BlackBerry Dev. Group
Please use plain text.
New Contributor
micrcx1234
Posts: 2
Registered: ‎03-09-2012
My Device: playbook
My Carrier: I don't know

Re: Creation of virtual keyboard

If the virtual keyboard is implemented in BB OS 2.x, it means that in principle it's possible. The presence of a special API or services (as input method in Android, for instance) is not necessary. In Windows 7  input method is absent, and there is no special API too. However, in this system create a virtual keyboard is quite easy, if you know some specific properties of the windows. Externally, the soft keyboard in W7 and BB OS 2.x are very similar. Moreover, I am pretty sure that these applications are built on one and the same principle, they are used popup and noactivate windows and data transfer to/from the focused window. I'm sorry I do not know how these things are implemented in the QNX, and your experts are reluctant to share secrets.

Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Creation of virtual keyboard

micrcx1234, with the security mechanisms in place in BB10, it is simply NOT possible to do this the same way you might in other environments. When one app is fullscreen, no other app could make any window appear on top of it, nor could any app intercept or otherwise interfere with the input stream.

There are no real secrets to be shared here... it's not possible.

(Of course, one might discover a flaw in the OS and exploit that, but I'm going to discount that as a solution to this problem because the hole would be closed rather quickly once its existence was revealed.)

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Contributor
micrcx
Posts: 17
Registered: ‎03-09-2012
My Device: playbook
My Carrier: I don't know

Re: Creation of virtual keyboard

Thank you for taking the time to clarify the situation. I hope that in the future in the BB 2.x or BB 10.x possibility will be opened to create your own or modify the standard soft keyboard. So far, I'll try to port my solution on Android's.

Please use plain text.
Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900
My Carrier: Rogers

Re: Creation of virtual keyboard

not only are the apis not available, you cant run background apps in PlayBook (and should not be ready for the launch of bb10). so you can make an app that types and copy it over. but thats about it.


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Please use plain text.