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

Regular Contributor
Posts: 71
Registered: ‎03-24-2010
My Device: 9550
My Carrier: Vodaphone
Accepted Solution

Implement Pinch-zoom in blakcberry



Blackberry support multitouch. However, the SDK is very limited.

All I can found is  getMovePoints() returning the trace of each finger.


I would like to implement a pinch zoom (zoom by movement of 2 finger) like iPhone in my application.

I have some questions:

- Is it legal to have this feature on my application? There is rumor that pinch zoom is patented by Apple Smiley Sad.

- If yes, do you have any suggestion about how to recognize gesture from the trace returned by getMovePoints()?


Thanks in advace



Regular Contributor
Posts: 71
Registered: ‎03-24-2010
My Device: 9550
My Carrier: Vodaphone

Re: Implement Pinch-zoom in blakcberry

Regular Visitor
Posts: 1
Registered: ‎12-02-2010
My Device: Not Specified
My Carrier: developer(learner)

Re: Implement Pinch-zoom in blakcberry

Hey...why you post for iphone when we want to know about blackberry .....we can get alot of post for iphone.....plz help in blackberry development....

Posts: 39
Registered: ‎06-22-2009
My Device: Torch (9800), Bold (9930)
My Carrier: Verizon

Re: Implement Pinch-zoom in blakcberry

[ Edited ]

Considering RIM's own native application for viewing pictures implements the same functionality, I doubt there is an issue with implementing it yourself.  Their latest APIs allow you to determine pinch gestures, so you should be fine.



Click "Accept as Solution" if this post was what you needed.
Give kudos by clicking on the star icon to say "Thanks!" if you feel this response is helpful.
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-, Z10 (STL100-3)-, Z30 (STA100-5)-, Passport (SQW100-1)-, PlayBook (16GB)-
My Carrier: Verizon

Re: Implement Pinch-zoom in blakcberry

If you are developing for 6.0 and higher you can use the native pinch-soom gesture, otherwise I had actually used that website to develop my own pinch-zoom system for BlackBerry.



Go to Source Code->Click "Browse" on the right0hand side->PDFViewer->com.sun.pdfview.ui->GestureField.java


If you use it and find any bugs, please send me a PM with information on it.

---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.