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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
narendra
Posts: 218
Registered: ‎02-20-2009

how to implement search like address book ?

Hi all,

 

       I need to implement search function in my application's "Favorites" section like Address Book search of Blackberry.

 It should happens when User presses any key.

 

How should implement this.? please give me some hint or suggestions for that.

 

 

thanks & Regards,

Narendra

Please use plain text.
Developer
marchywka
Posts: 1,415
Registered: ‎07-30-2008

Re: how to implement search like address book ?

I use b-trees but if you don't expect much volatility sorted arrays may be better.

See the RIM array utility classes for example.

Please use plain text.
Developer
narendra
Posts: 218
Registered: ‎02-20-2009

Re: how to implement search like address book ?

need little bit more information ....:smileyhappy:
Please use plain text.
Developer
bbbbdeveloper
Posts: 42
Registered: ‎08-10-2009

Re: how to implement search like address book ?

hi,

 

use keywordfilter field for this..............for refrence see teh example stored in ur bin/sample folder......

 

u can also use keylistener for this...........just set keylistener to ur textbox and do some hard code to perform ur desired functioning...

 

Please use plain text.
New Developer
david_david
Posts: 11
Registered: ‎03-26-2009

Re: how to implement search like address book ?

hi All,

 

we just implemented the seach field with keyListener

 

But with 8100 devices, devices with multimap (no full qwerty keyboard), when reading char/key from keydown event and set to search field, its only getting the first character..

 

e.g, b,n are on same key, when we double tap the b key,in keyDown() we always getting the b character, not getting the 'n' char..

 

any help..?

Please use plain text.
New Developer
david_david
Posts: 11
Registered: ‎03-26-2009

Re: how to implement search like address book ?

Or any other way to implement the same.. with multimap keyboard devices(8100) ?..

Please use plain text.
New Developer
garygsmith
Posts: 10
Registered: ‎10-01-2009

Re: how to implement search like address book ?

Any one know how to do this?  I have the same issue and cannot find an answer anywhere.

Please use plain text.
New Contributor
mapleskip
Posts: 2
Registered: ‎03-02-2010
My Carrier: T-mobile

Re: how to implement search like address book ?

Hi,all:

 I need to implement like this for japan's app,when i input "s" ,it returns 佐藤 昇,Because, 読み(性) start with "サ". "サ" = "sa",what should i do?please give me some help?


Please use plain text.