Bug 2670 - Mono for Android is filtering touch events
Summary: Mono for Android is filtering touch events
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-12-28 13:40 UTC by Warren Burch
Modified: 2012-10-01 10:55 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Java and MFA projects for comparison (1.00 MB, application/x-zip-compressed)
2011-12-28 13:40 UTC, Warren Burch
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Warren Burch 2011-12-28 13:40:22 UTC
Created attachment 1104 [details]
Java and MFA projects for comparison

If I make a small Eclipse Android project to dump the OnTouch events I see the expected log spew...

12-28 10:29:25.442  2211  2211 D EXTTOUCH: event ACTION_DOWN[#0(pid 0)=258,426]
12-28 10:29:25.450  2211  2211 D EXTTOUCH: event ACTION_MOVE[#0(pid 0)=258,426]
12-28 10:29:25.473  2211  2211 D EXTTOUCH: event ACTION_MOVE[#0(pid 0)=258,426]
12-28 10:29:25.489  2211  2211 D EXTTOUCH: event ACTION_MOVE[#0(pid 0)=258,426]
12-28 10:29:25.528  2211  2211 D EXTTOUCH: event ACTION_UP[#0(pid 0)=258,426]

if I build essentially the same application in MFA (4.01) and use a Java helper to listen to the OnTouch events generated from the view I see...

12-28 10:30:47.973  2342  2342 I EXTTOUCH: TouchHelper(JAVA)!
12-28 10:30:47.973  2342  2342 D EXTTOUCH: event ACTION_DOWN[#0(pid 0)=220,317]
12-28 10:30:51.145  2342  2342 I EXTTOUCH: TouchHelper(JAVA)!
12-28 10:30:51.145  2342  2342 D EXTTOUCH: event ACTION_DOWN[#0(pid 0)=229,318]
12-28 10:30:51.551  2342  2342 I EXTTOUCH: TouchHelper(JAVA)!
12-28 10:30:51.551  2342  2342 D EXTTOUCH: event ACTION_DOWN[#0(pid 0)=237,322]

Mono for Android is filtering the other events somehow. I made the Java wrapper to get closer to the metal than overriding OnTouch in the Activity. If I override the OnTouch in my activity I do indeed see Down/Move/Up.

Because of other bugs in MFA touch handling (very delayed response times after app runs for over 15 minutes) I need to intercept the OnTouch myself, I cannot work around this if MFA is filtering these events.

I have attached both the VS and Eclipse projects.

Thanks
Warren Burch
Comment 1 Atsushi Eno 2012-10-01 10:55:48 UTC
-> classlib

This does not reproduce (probably anymore), marking it as fixed. Thanks for the report.