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: 415
Registered: ‎07-28-2010
My Device: 8000
My Carrier: hi

Long key press event on button..

Hello,

          i want long key press event in my application. can any one tell me how sould i implement in that?

supose 

            Button is my object than how should i check it press long ?

 

 

Thanks and regards,

     Ajay Patil

Developer
Posts: 16,851
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Long key press event on button..

not sure if a buttonfield issues an unclick event, if not you can use navigationclick and navigationunclick and compare the timestamps.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 415
Registered: ‎07-28-2010
My Device: 8000
My Carrier: hi

Re: Long key press event on button..

Thanks for rpl me.

                                 can you give me one small example related to that?

because i have issue related to that. i am not gettting example related to that. pls help me frnds.

Highlighted
Developer
Posts: 16,851
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Long key press event on button..

just show your code and maybe we can help improve it.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter