I want to implement a pinch to zoom function in one of my apps, my problem is that this is only supported by Android 2.2 and most but not all of my user base is 2.1. So my question is, can I implement this feature without causing incompatibility with 2.1?
Asked
Active
Viewed 155 times
0
-
Multitouch is supported by 2.1, I certainly had it on my 2.1 Nexus One! – fredley Jan 04 '11 at 21:38
-
Yes but programming it in third party applications wasn't OFFICIALLY supported until 2.2 – Mitchell Jan 04 '11 at 21:38
-
I had plenty of apps that used it though, so it's clearly possible. – fredley Jan 04 '11 at 21:41
-
I'm sure it's possible but 2.2 has an API for it. I'm wondering if it's possible to have it when the phone is running 2.2 but disable when the phone has 2.1 – Mitchell Jan 04 '11 at 21:44
-
The ScaleGestureDetector class added in the framework doesn't have any special dependencies. At worst you could simply download it from AOSP and include it in your project. Ideally you should use the system version if present, since it may include updates and bug fixes since your app was released. – adamp Jan 04 '11 at 22:41