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
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

swipe on 9800 simulator's track pad touchEvent method not invoked

[ Edited ]

Hi,

 

I have overrided touchEvent method  in my screen

protected boolean touchEvent(TouchEvent message){

}

 

and I have included following code in screen's constructor

InputSettings nd = NavigationDeviceSettings.createEmptySet();
nd.set(NavigationDeviceSettings.DETECT_SWIPE, 1);
addInputSettings(nd); 

But when I swipe on 9800 simulator's track pad touchEvent method not invoked

 

help me where I have done mistake?

or is trackpad swipe will be dected on 8900 simulator?

Please use plain text.
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: swipe on 8900 simulator's track pad touchEvent method not invoked

8900 has no touch screen.

Please use plain text.
Developer
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: swipe on 9800 simulator's track pad touchEvent method not invoked

[ Edited ]

ohh sorry

it was 9800

 

when I swipe on 9800 (torch) Trackpad touchEvent not invoked!!!

 

 

Please use plain text.
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: swipe on 9800 simulator's track pad touchEvent method not invoked

Trackpads do not invoke touchEvent callbacks.  They invoke navigationMovement/navigationClick events.

 

 

Please use plain text.
Developer
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: swipe on 9800 simulator's track pad touchEvent method not invoked

Then how to handle swipe on Trackpad

 

I have got this info from blackberry site

 

 http://docs.blackberry.com/en/developers/deliverables/17971/Swipe_gestures_trackpad_1226851_11.jsp

 

it says that we can handle trackpad swipe on touchEvent()

 

Please use plain text.
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: swipe on 9800 simulator's track pad touchEvent method not invoked

Interesting, was not actually aware of that! :smileyhappy:

 

 

 

Please use plain text.
Developer
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: swipe on 9800 simulator's track pad touchEvent method not invoked

ok fine,

thanks for replay

 

but why touchEvent not invoked in my case..

 

is there any one come across with this....

 

Please use plain text.
Developer
dnepr
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: swipe on 9800 simulator's track pad touchEvent method not invoked

Btw, its just possible that its very difficult/impossible to do on simulator, but works on real device.

 

Do you have a chance to get a real device?

Please use plain text.
Developer
mbasheerk
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: swipe on 9800 simulator's track pad touchEvent method not invoked

Hi all

as said by dnepr can't we simulate touchpad swipe on 9800 simulator!!!,

if we can then How?

and what is the problem in my code?

Please use plain text.