Re: [android-porting] Re: Touchscreen multitouch changes between android 4.1/4.3?

116 views
Skip to first unread message

Weston Weems

unread,
Jan 9, 2014, 3:55:05 PM1/9/14
to android...@googlegroups.com
Ends up it was just the touchslop calibration... after playing with it, I was able to get it a lot better...



On Wednesday, January 8, 2014 9:36:02 PM UTC-8, kamal kumar wrote:
Hi Wetson,
Enabling/Disabling of the built in zoom control logic is part of Browser app.

However enabling & disabling the multitouch logic presents in the WebKit Java layer.

Check updateMultiTouchSupport function in the ZoomManager.java of the frameworks/base/core/java/android/webkit.

 mSupportMultiTouch =
                (pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH)
                 || pm.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT))
                && settings.supportZoom() && settings.getBuiltInZoomControls();

Check if it satisfies all the above conditions in your environment.

FEATURE_TOUCH_SCREEN_MULTITOUCH is for enabling/disabling the multitouch for the over all system.
supportZoom & getBuiltInZoomControls values will be set/unset in WebSettings by the App which uses the Webview for ex: Browser app in your case.
I suggest you add logs in the above updateMultiTouchSupport to check what is going wrong.

Regards,
kamal



On Wed, Jan 8, 2014 at 11:35 AM, rishi gupta <gup...@gmail.com> wrote:
Did you analyzed handlers for these multi touch events.


On Mon, Jan 6, 2014 at 10:59 PM, Weston Weems <wwe...@gmail.com> wrote:
I've turned a lot of tracing on throughout my code and so far have found this...

Browser checks for multitouch or fake multitouch.distinct, and that returns true... so I dont get the zoom icons.

I enabled tracing on input events to the browser and am seeing multiple touch points come in (touch point count = 2), but it just seems like its nto even trying to do pinch zoom etc.

Any ideas?


On Friday, January 3, 2014 2:40:52 PM UTC-8, Weston Weems wrote:
Gentleman,

I've successfully ported android a number of times as well as ran through a number of iterations of android on the same sets of hardware but I've got something thats puzzling me.

Moving one of my bits of hardware from 4.1 to 4.3, I've noticed that multi-touch in the browser doesnt work (even after copying android.hardware.touchscreen.multitouch.xml to the appropriate place).

In testing with a multi-touch testing application and getevent, I do see multi-touch working, but the browser app / web views just ignore the functionality.

If anyone has any clues, they would be greatly appreciated!


You received this message because you are subscribed to a topic in the Google Groups "android-porting" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-porting/PIkC8ov0cOA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-porti...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting
 
---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Weston Weems

unread,
Jan 3, 2014, 5:40:52 PM1/3/14
to android...@googlegroups.com

rishi gupta

unread,
Jan 6, 2014, 9:41:24 AM1/6/14
to android...@googlegroups.com
Dear Weston,

Does the browser app's manifest has this line
<uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />

Applications may disable multi touch features. There are more ways to disable it even.

Weston Weems

unread,
Jan 6, 2014, 12:29:37 PM1/6/14
to android...@googlegroups.com
I've turned a lot of tracing on throughout my code and so far have found this...

Browser checks for multitouch or fake multitouch.distinct, and that returns true... so I dont get the zoom icons.

I enabled tracing on input events to the browser and am seeing multiple touch points come in (touch point count = 2), but it just seems like its nto even trying to do pinch zoom etc.

Any ideas?

On Friday, January 3, 2014 2:40:52 PM UTC-8, Weston Weems wrote:

rishi gupta

unread,
Jan 8, 2014, 1:05:27 AM1/8/14
to wwe...@gmail.com, android...@googlegroups.com
Did you analyzed handlers for these multi touch events.
On Mon, Jan 6, 2014 at 10:59 PM, Weston Weems <wwe...@gmail.com> wrote:

kamal kumar

unread,
Jan 9, 2014, 12:36:02 AM1/9/14
to android...@googlegroups.com
Hi Wetson,
Enabling/Disabling of the built in zoom control logic is part of Browser app.

However enabling & disabling the multitouch logic presents in the WebKit Java layer.

Check updateMultiTouchSupport function in the ZoomManager.java of the frameworks/base/core/java/android/webkit.

 mSupportMultiTouch =
                (pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH)
                 || pm.hasSystemFeature(PackageManager.FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT))
                && settings.supportZoom() && settings.getBuiltInZoomControls();

Check if it satisfies all the above conditions in your environment.

FEATURE_TOUCH_SCREEN_MULTITOUCH is for enabling/disabling the multitouch for the over all system.
supportZoom & getBuiltInZoomControls values will be set/unset in WebSettings by the App which uses the Webview for ex: Browser app in your case.
I suggest you add logs in the above updateMultiTouchSupport to check what is going wrong.

Regards,
kamal

On Wed, Jan 8, 2014 at 11:35 AM, rishi gupta <gup...@gmail.com> wrote:
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages