Touch/mouse event processing in Android's browser

by ...Max... » Wed, 22 Oct 2008 09:23:07 GMT


Sponsored Links
 Is there any way to process the messages generated by the touch events
in Android's version of WebKit? On iPhone, this is done with
additional events (ontouchstart, ontouchend, ontouchmove). I
understand these are not available in Android. I have tried (on the
emulator) monitoring the onmousedown, onmouseup and onmousemove which
are implemented in base WebKit and the results were not encouraging:

- Clicking and releasing the mouse without moving it generates
onmousedown followed by onmouseup but ONLY when the mouse button is
released
- Clicking, holding for a short period of time, moving and then
releasing generates a sequence of onmousemove, onmousedown, onmouseup
(in that order) again, ONLY when the button is released
- Clicking, moving immediately and releasing does not generate any
events

This is clearly not enough for any kind of touch-based UI. Is there
some provision in the DOM, or a <meta> tag for capturing the missing
events?

Thanks in advance,
...Max...

--~--~---------~--~----~------------~-------~--~----~



Touch/mouse event processing in Android's browser

by csvy » Sat, 29 Nov 2008 16:30:50 GMT


 Has anyone made any progress on this?  I skimmed through the Webkit
source used in Android, but I couldn't find any non-standard events
(although it is extraordinarily possible that I missed something).

I really need to be able to get touch events and this seems like a
huge omission...




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. The application has stopped unexpectedly. Please try again.





Use your de{*filter*}.

-------------------------------------------------------------------------------------------------
TreKing < http://www.***.com/ ; - Chicago
transit tracking app for Android-powered devices

-- 

2. How to retrieve EditText's xml id

Hi, I have a form with many EditTexts, and when I press a certain
button, I need to retrieve all these controls and put them into a
HashMap so the key is the name (key1 int the following code)

<EditText android:id="@+id/key1"
        style="@style/keys" />

and the value, whatever text the user enters.

My question is, how can I retrieve the name of the EditText for the
Hashmap's keys ? getId() returns a number.

Thanks

-- 

3. How Load xml layout file from server...

4. Repeating background does not repeat

5. How to slice camera view?

6. Automated SMS sending

7. unkown reason -18