fasiy / rokon

Automatically exported from code.google.com/p/rokon
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

android.view.MotionEvent.getPointerCount() is not implemented in andoird 1.5 #114

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Overwriting onTouchMove()
2. Games crashes on start

What version of Rokon are you using?
2.0.3

On which version of Android are you experiencing this?
1.5 - debugging on a samsung galaxy i7500

Please provide any additional information below.
07-12 22:29:04.067: ERROR/dalvikvm(14505): Could not find method 
android.view.MotionEvent.getPointerCount, referenced from method 
com.stickycoding.rokon.MotionEventWrapper5.getPointerCount
07-12 22:29:04.067: WARN/dalvikvm(14505): VFY: unable to resolve virtual method 
71: Landroid/view/MotionEvent;.getPointerCount ()I
07-12 22:29:04.067: WARN/dalvikvm(14505): VFY:  rejecting opcode 0x6e at 0x0000
07-12 22:29:04.067: WARN/dalvikvm(14505): VFY:  rejected 
Lcom/stickycoding/rokon/MotionEventWrapper5;.getPointerCount 
(Landroid/view/MotionEvent;)I
07-12 22:29:04.067: WARN/dalvikvm(14505): Verifier rejected class 
Lcom/stickycoding/rokon/MotionEventWrapper5;

Original issue reported on code.google.com by sresch2009@gmail.com on 12 Jul 2010 at 8:41

GoogleCodeExporter commented 8 years ago
First implementation of getPointerCount() is API Level 5
http://developer.android.com/reference/android/view/MotionEvent.html#getPointerC
ount%28%29

Original comment by sresch2009@gmail.com on 12 Jul 2010 at 8:43

GoogleCodeExporter commented 8 years ago
Did you compile from the source (svn) or did you use the library?

Original comment by anton.he...@gmail.com on 13 Jul 2010 at 7:35

GoogleCodeExporter commented 8 years ago
I used your lib 2.0.3. Should the problem be resolved in the svn trunk?

Original comment by sresch2009@gmail.com on 13 Jul 2010 at 7:42

GoogleCodeExporter commented 8 years ago
Can you confirm this is still broken sresch2009?

For me, it works fine on 1.5 ...

Original comment by rtaylor205@gmail.com on 25 Jul 2010 at 8:43

GoogleCodeExporter commented 8 years ago
If I run 2.0.3 I get the Exception, so I tried the svn trunk (r358) and changed 
your MotionWrappers.  Now it works on my Samsung Galaxy (1.5)...

-> MotionWrapper5.getPointerCount() and MotionWrapper8.getPointerCount()
return motionEvent.getPointerCount();
replaced by
return 1; // cause samsung galaxy doesn't support multitouch

Original comment by sresch2009@gmail.com on 25 Jul 2010 at 1:14

GoogleCodeExporter commented 8 years ago
This is fixed now, without needing the hack above!

:)

Original comment by rtaylor205@gmail.com on 29 Jul 2010 at 7:08