Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
nrupayshah
Posts: 35
Registered: 03-27-2010
My Carrier: hutch

How to open an application by pressing any key on keyboard by programming?

Hi Everyone, I had made an application. Now i want to implement the feature by which user can press any key, assume 'x', my application will invoke directly. Like , when user will press alt+x , my application will be launched. Can any one please help me? Is it possible? Thanks & Regards Nrupay Shah
Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: How to open an application by pressing any key on keyboard by programming?

not possible.

your user can place your application on a convenience key, but that has to be done manually.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.
New Developer
nrupayshah
Posts: 35
Registered: 03-27-2010
My Carrier: hutch

Re: How to open an application by pressing any key on keyboard by programming?

isn't there any way to do same things by grammatically? Thanks & Regards Nrupay Shah
Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: How to open an application by pressing any key on keyboard by programming?

no, as grammar is mostly left to the user, with the exception of autocorrection.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.
Developer
maadani
Posts: 552
Registered: 05-04-2011

Re: How to open an application by pressing any key on keyboard by programming?

Up until OS 5.0 there was an option to set a shortcut key but I think it has more cons than pros.

 

In you Blackberry_App_descriptor.xml file, add '\u0332' after the letter you want to use a shortcut for your application.

 

For example: if your application name is MyApp and you want to use 'M' as a shortcut, change the title to 'M\u0332yApp'.

 

Pros:

It will enable shortcut for your application.

 

Cons:

1. The user needs to disable calling from home screen option.

2. Two different application can use the same key, in this case, the latter will be activated.

 

Also, I'm not sure what will happen if you try and use a key which is already used by the theme.

 

E.

Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: How to open an application by pressing any key on keyboard by programming?

interesting to know maadani, i wasn't aware of that.
not very usable i guess, especially with it not being supported on os6/7, but still a piece of arcane knowledge :smileyhappy:
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.