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
Developer
Posts: 218
Registered: ‎02-20-2009
My Device: Not Specified

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

Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

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.

Developer
Posts: 218
Registered: ‎02-20-2009
My Device: Not Specified

Re: how to implement search like address book ?

need little bit more information ....:smileyhappy:
Developer
Posts: 42
Registered: ‎08-10-2009
My Device: Not Specified

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...

 

New Developer
Posts: 11
Registered: ‎03-26-2009
My Device: Not Specified

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..?

New Developer
Posts: 11
Registered: ‎03-26-2009
My Device: Not Specified

Re: how to implement search like address book ?

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

New Developer
Posts: 10
Registered: ‎10-01-2009
My Device: Not Specified

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.

New Contributor
Posts: 2
Registered: ‎03-02-2010
My Device: 9000

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?