emeric636 / andengine

Automatically exported from code.google.com/p/andengine
0 stars 0 forks source link

MultiTouch.isSupported always return false on eclair + froyo #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I looked at:
On SystemUtils.java, method isAndroidVersionOrHigher (line 77)

/**
 * @param pBuildVersionCode taken from {@link Build.VERSION_CODES}.
*/
public static boolean isAndroidVersionOrHigher(final int pBuildVersionCode) {
   return Integer.parseInt(Build.VERSION.SDK) >= pBuildVersionCode;
}

currently still using Build.VERSION.SDK, which is deprecated. I try to use 
SDK_INT instead like http://developer.android.com recomend

+++This field is deprecated.
+++Use SDK_INT to easily get this as an integer.

So i change it to:
public static boolean isAndroidVersionOrHigher(final int pBuildVersionCode) {
    return Build.VERSION.SDK_INT >= pBuildVersionCode;
}

Works fine on my emulator, but still got false value on my 
Nexian NX-A891, but pinchZoom is working though.

Original issue reported on code.google.com by wiriadin...@gmail.com on 31 Dec 2011 at 6:24