Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 01-11-2012, 12:20 PM
CrackBerry Newbie
Device(s): 9500 (Storm)
Carrier: Rogers
 
Join Date: Oct 2009
Posts: 2
Likes Received: 0
Thanked 0 Times in 0 Posts
Default 9850 simulator returns wrong key with DEFAULT_SMART_PHONE filter

Hello,


I have a strange problem with 9850 simulator (and device), OS 7.0.0.362.

I have TextField with PhoneTextFilter.DEFAULT_SMART_PHONE set and i use it for entering phone numbers in my app.

But on 9850 simulator, whenever I add 0 in the text field, the typed character ch is always "?" (question mark) in keyChar(char ch, int status, int time) method.

My code looks like this:

protected boolean keyChar(char ch, int status, int time)

{
System.out.println("Key typed: "+ch); //here i get "?" for ch when zero is pressed
if (CharacterUtilities.isDigit(ch)){

//it never gets here as "?" is not digit
//some code
}
}

Anyone have any idea?



Just to mention, my app works fine on all other models with OS 6.0 and above. So far 9850 is the only one with the issue.



Thanks.

Katerina
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   9850 simulator returns wrong key with DEFAULT_SMART_PHONE filter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes