[SOLVED]
Found the answer here:
http://rossboucher.com/2008/08/19/iphone-touch-events-in-javascript/comment-page-1/#comment-14391
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to
Um... hello? Is there anyone who has any idea how to implement a
touchmove event? Anyone, anywhere?
I have looked around the internet and asked on a few different forums,
and got zero response. Zero. Nothing. Not even people telling me to
RTFM or what's wrong with my question.
I've tried
After much looking around on the subject, it is far from clear how I
can get my slider to respond to a touch event.
I have attempted to modify the YUI slider code as follows. What might
be going wrong?
Also, please note, I am a total JavaScript beginner. Not only is the
code cobbled together
John, Fred, and Streets Of Boston,
Sorry I stepped away from this conversation for a bit. Work has a
nasty habit of getting in the way sometimes.
Thank you for replying and explaining the situation to me a little
more.
I can now see how touch events might diverge from mouse events in
certain
The reason they don't work on the Android browser (or webkit for that
matter) is that they are using mouse events. If you want to use that
code on the Android you have to use touch events instead. Try reading
up on the following:
touchstart - finger touches the screen
touchmove - finger is
John,
Thank you for the reply.
Hmm... seems a little odd to me that they went and made a whole
different set of events for using fingers on a touch screen when they
are duplicates of what I do with a mouse. There's nothing about
touching with a finger which, as far as I can see, is
It probably will work, mouse and touch events won't happen
simultaneously.
As for touch, you can have multiple finger touches (think iPhone)
which can be interpreted differently than anything that can be done
with a mouse. Android doesn't (I believe) support gestures at this
point but may in the
There's nothing about touching with a finger which, as far as I can see, is
operationally different from the things I do with my mouse
It *is* a little different. E.g. you won't have corresponding finger-
events for mouseover, mouseout, etc. The phone cannot quite detect
your finger hovering
One other thing...
I've found differences between the way iPhone and Android handle
events. Mouse events on the iPhone are handled differently on Android,
so keep that in mind as well.
-John Coryat
What Zip Code?
Radar Now!
--~--~-~--~~~---~--~~
You received
Thank you everyone for the helpful information.
What I have learned so far:
* Android devices are limited in speed and power, so don't expect all
the same functionality of a computer.*
I understand this concept, and my initial suspicion is that this is
not the issue. I have one (1) slider on
ebisudave wrote:
Is there no reference that outlines any special considerations for how
JavaScript runs on Android?
Not that I have seen.
Is Android *supposed* to run JavaScript
like any other JavaScript capable browser?
On the whole, yes. Bear in mind that Android uses WebKit, so where
Is Android *supposed* to run JavaScript
like any other JavaScript capable browser?
On the whole, yes. Bear in mind that Android uses WebKit, so where you
see browser-specific instructions for Javascript libraries, follow those
for iPhone, Safari, or perhaps Chrome.
If only Chrome were
In a word: YES!
Implementations of JavaScript vary across all the major platforms, you
have to be very careful about testing, test and more testing each time
you make a change to any code on a web page. The worst offenders are
IE6 and IE7. Safari has plenty of quirks and as the iPhone is a
ebisudave wrote:
On the whole, yes. Bear in mind that Android uses WebKit, so where you
see browser-specific instructions for Javascript libraries, follow those
for iPhone, Safari, or perhaps Chrome.
If only Chrome were available on Linux... but that's another issue.
I'm reading this
Hi,
* http://www.nanaze.com/2009/01/debugging-javascript-on-android.html *
Thank you for the link, however, that article went way, way over my
head, at commercial airliner altitudes.
Maybe not.
Just:
1) get the sdk http://developer.android.com/sdk/1.6_r1/index.html
2) set your path
Here's what I have learned so far:
The following scripts all behave the same on my Android device:
http://developer.yahoo.com/yui/examples/slider/slider-ticks.html
http://developer.yahoo.com/yui/examples/slider/slider_dual_thumb_clean.html
Shawn,
This is much easier than the stuff I know you fiddle with in you linux
box
No... no it's not. Let's not get into broad statements about what my
environment is like or how I handle it. Linux is fine, it's me who has
different abilities, so please leave it for me to decide what I can
and
ebisudave wrote:
By way of introduction, please know that I'm a complete newbie when it
comes to JavaScript. I'm a web designer who can program a little. But
I've only just started playing with JavaScript about four days ago.
I made a JavaScript slider with Yahoo's User Interface library:
I asked a similar question a few weeks ago with no answer. I am using
JQuery for some animation on a 1 sec timer which also fails in the
Android browser. The only thing I can imagine is that we run into some
kind of JavaScript speed limitation, exhausted javascript message pump
or something like
I think a lot of developers, especially ones from the web world,
forget that these mobile devices are like desktop computers of the
mid-90's in power and speed. Trying to get a complex JavaScript
application to run on the phone is probably going to be disappointing.
Just because it runs on FF
You can easily test your device's browser JavaScript capabilities by
calling up a Google Map API (v3 is best on mobile) application. Here's
one you can try:
http://www.usnaviguide.com/v3maps/ProjectedOverlayTest.htm
If this map works, you have JavaScript enabled.
-John Coryat
What Zip Code?
Oh certainly, but as I said, it works in the emulator. So currently I
don't think my problem is due to heavy javascript usage. I don't want
to steal the thread from ebisudave, but as an example of the kind I
have trouble with, take a look at the top chart here (animated jquery
sparkline example):
EbisuDave,
I bet you are in Tokyo !
Have you tried:
http://www.nanaze.com/2009/01/debugging-javascript-on-android.html
Shawn
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post
23 matches
Mail list logo