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
New Developer
vishalkheterpal
Posts: 119
Registered: ‎01-11-2011

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.