> My app uses a viewflipper to swith between a standard SurfaceView
> and a GLSurfaceView. It works like it should on my Samsung Galaxy S
> device.
>
> The problem is that onTouch() in the activity class gets called 2
> times for
> every touch. This does not occur on my mobile device, but since it
> happens on the emulator,
> I suspect that this will happen on other devices. What could be the
> reason that
> onTouch gets called 2 times for every touch in the emulator?
Once you click the mouse button and once you release it, probably.
Dump the event action to check (event.getAction()).
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment