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
Contributor
Posts: 28
Registered: ‎05-03-2011
My Device: 9530
My Carrier: cell

how to create search field ?

hie,

how to create search field in blackberry ..?

can any give me sample code for that..

Developer
Posts: 174
Registered: ‎01-25-2011
My Device: Not Specified

Re: how to create search field ?

make use of AutoCompleteField
New Developer
Posts: 160
Registered: ‎03-02-2011
My Device: Not Specified

Re: how to create search field ?

You can create a custom EditField and on each click of keyboard filter the text.

protected boolean keyChar(char character, int status, int time) {
if (character == Keypad.KEY_ENTER) {
fieldChangeNotify(0);
return true;
}
return super.keyChar(character, status, time);
//do your search here
}