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

Java Development

Reply
Highlighted
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810
Accepted Solution

DTMF BasicEditField. Which filter to use ?

This is a quickie for the forum legends Smiley Happy

 

Which filter do you suggest for a DTMF input field?

 

Allowed characters would be: a-z,0-9, *, #.

 

Can anyone figure out the right combination of filter flags for something like this ?

 

Thanks!



"Listen carefully, I shall say this only once"
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: DTMF BasicEditField. Which filter to use ?

a-z? as dtmf?

there is no predefined filter for this. you can work with keydown or keychar, depending on what exactly you want to do.
----------------------------------------------------------
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.
@SimonHain on twitter
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: DTMF BasicEditField. Which filter to use ?

Ok. Thanks for the advice.

 

as for 'a-z'. RIM gave a pretty smart option for BB Users.

A lot of Users (including myself), memorize words rather than phone numbers. 

you know numbers like: 0800 - HOUSE - LOANS.

 

When you look at the standar telephone keyboard you will se a map of characters vs digits. For instance 'tin can' would be: '846 226'.

 

When you send DTMFs with characters, RIM will translate them automagically Smiley Happy



"Listen carefully, I shall say this only once"
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: DTMF BasicEditField. Which filter to use ?

this is new to me. if i make a call in the simulator i can press 0...9, *, #
pressing keys that are not occupied by a number do simply nothing.
senddtmf states: Valid DTMF tone characters are 0-9 inclusive, ‘#’, and ‘*’.
if you want other chars as input you'll have to implement a conversion method.
----------------------------------------------------------
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.
@SimonHain on twitter
Developer
Posts: 412
Registered: ‎09-12-2008
My Device: 9000 9810

Re: DTMF BasicEditField. Which filter to use ?

Yeah, it does work. Tested on Bold. (and, of course many simulators before that Smiley Happy)


"Listen carefully, I shall say this only once"