pulltorefresh compatibility with Ice Scream Sandwich

view full story

http://stackoverflow.com – I'm having problems with modified PullToRefresh library https://github.com/johannilsson/android-pulltorefresh/pull/40 it works fine in android version 2.x, but crashes in 4.x (I have no a 3.x device to check if works). In 4.x it fails in the method: private void applyHeaderPadding(MotionEvent ev) { // Workaround for getPointerCount() which is unavailable in 1.5 // (it's always 1 in 1.5) int pointerCount = 1; try { Method method = MotionEvent.class.getMethod("getPointerCount"); pointerCount = (Integer)method.invoke(ev); } catch (NoSuchMethodException e) (HowTos)