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
New Developer
vishalkheterpal
Posts: 134
Registered: ‎01-11-2011
My Device: curve

TouchEvent in blackberry

Hi 

 

I am overriding touch event method in my class.

What is happening on touch code in touch event execute three time ,even i am returing true from the method.

 

protected boolean touchEvent(TouchEvent message) {

int x = message.getX(1);
int y = message.getY(1);

 

 

searchText = search.getText();
if (searchText.trim().length() > 0)
callMeForSearchButtonClicked();
else
Dialog.alert("Please enter name");


return true;
}

 

What is happening .Need help

 

 

Please use plain text.