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: 41
Registered: ‎08-08-2008
My Device: Not Specified

OS6.0 - no click events only taps?

My application developed for the Storm is not working on the Torch.  It does not receive any click/unclick events.  On the emulator, I'm seeing that the app receives tap gestures using both the left and right mouse buttons.

 

How do you distinguish between taps and clicks?

 

Developer
Posts: 41
Registered: ‎08-08-2008
My Device: Not Specified

Re: OS6.0 - no click events only taps?

I've noticed that at least some fields are receiving the click/unclick events.  The Screen class's touchEvent does not seem to receive them, however.

 

Developer
Posts: 1,806
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: OS6.0 - no click events only taps?

Well the only simulator with 6.0 right now is the 9800, this does not have a SurePress (which the Storms have) screen.

 

RIM has stated that the order should be DOWN/CLICK/UNCLICK/UP but for all I know if the click was quick it might never register the click and instead only the DOWN/UP (and maybe Tap gesture) events.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: OS6.0 - no click events only taps?

[ Edited ]

Torch still sends Click/Unclick events.

 

It goes like this (basically...):

 

Down

Click

Unclick

Up

 

No matter how fast I click (real device and simulator) I always get the click events.

Fyi.  Storm 2.5 still has surepress and runs 6.0.  This is a device specific thing, not OS specific.

Developer
Posts: 1,806
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: OS6.0 - no click events only taps?

@dnepr: Agreed

 

I'm still hoping 6.0 for Storm2, though I think it is a carrier issue, not RIM.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 41
Registered: ‎08-08-2008
My Device: Not Specified

Re: OS6.0 - no click events only taps?

Are you seeing those events in the touchEvent on the Screen class or some component Field?  I do not receive a click or unclick in the Screen's touchEvent method, only down, tap, up.

 

Developer
Posts: 723
Registered: ‎03-12-2009
My Device: Playbook

Re: OS6.0 - no click events only taps?

[ Edited ]

Screen class.

 

@rc:  I doubt it will come to Storm 2.   6.0 really needs that extra memory.

Highlighted
Developer
Posts: 1,806
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.3253, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: OS6.0 - no click events only taps?

Have you tried just catching click/unclick events?

 

@dnepr: I don't know, didn't RIM say that the 9700 would get 6.0? It has the same amount of memory and same speed CPU as the Storm2. RIM has said that the carrier decides so it could vary, until a leak comes out that can be played around with no one knows.

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: OS6.0 - no click events only taps?

It is a carrier issue, Verizon pulled the 6.0 OS because they said it slowed down the phone. Maybe they will let a later build on though. Don't know about the other carriers.

 

I agree with rcmaniac25; TAP is a gesture, have you tried just catching the basic CLICK/UNCLICK?

Developer
Posts: 266
Registered: ‎04-24-2009
My Device: Not Specified

Re: OS6.0 - no click events only taps?

I am having the same problem.

 

If I put a break on click or unclick touchEvents they never trigger using the simulator.  There is no way capturing a down up event will work for my application. I REALLY need an answer to this one soon.  If no one has any ideas, maybe I should try to contact RIM.