Drag and drop in a web application?

by Keith Hughitt » Fri, 11 Feb 2011 02:58:50 GMT


Sponsored Links
 Anyone know how it can be supported for web pages in Android browser?

Typically it is pretty straight-forward to support using a combination of 
the mouseDown, mouseMove, and mouseUp events. The default behavior in the 
Android web browser, however, is to drag the document itself. It looks like 
it should be possible, however, since Google maps drag behavior functions as 
expected.

Any advice would be appreciated.

Thanks,
Keith

-- 



Re: Drag and drop in a web application?

by Keith Hughitt » Fri, 11 Feb 2011 22:04:45 GMT


 Okay I found a solution which maps touch events to mouse events and seems to 
do the trick. In case anyone is interested, here is the link:

 http://ross.posterous.com/2008/08/19/iphone-touch-events-in-javascript/ 

-- 


Sponsored Links


Other Threads

1. Cannot play MPEG4 video stream on Android SDK 1.6

Hi,

I am sending a MPEG4  video stream in RTP format over RTSP to my
android emulator using ffmpeg and ffserver.  I use the Android
VideoView to play the RTSP stream.  I do not see the video.  The error
in LogCat is pasted below.  Is there some specific that I need to do?

If I use the Android 2.2 to run the same code, the video plays fine.

I also tried coding video using H263, but that stream does not play in
1.6/2.2  emulator
===================================================================================
07-16 15:50:46.073: DEBUG/PlayerDriver(554): buffering (6)
07-16 15:50:46.273: DEBUG/PlayerDriver(554): buffering (6)
07-16 15:50:46.474: DEBUG/PlayerDriver(554): buffering (73)
07-16 15:50:46.683: DEBUG/PlayerDriver(554): buffering (73)
07-16 15:50:46.884: DEBUG/PlayerDriver(554): buffering (73)
07-16 15:50:47.092: DEBUG/PlayerDriver(554): buffering (73)
07-16 15:50:47.293: DEBUG/PlayerDriver(554): buffering (73)
07-16 15:50:47.492: DEBUG/PlayerDriver(554): buffering (73)
07-16 15:50:47.703: DEBUG/PlayerDriver(554): buffering (73)
07-16 15:50:47.902: DEBUG/PlayerDriver(554): buffering (73)
07-16 15:50:48.113: DEBUG/PlayerDriver(554): buffering (73)
07-16 15:50:48.123: DEBUG/PlayerDriver(554): buffering (100)
07-16 15:50:48.162: ERROR/SW_DEC(554): PV SW DECODER is used for MPEG4
07-16 15:50:48.223: INFO/MP(807): onPrepared called
07-16 15:50:48.223: INFO/MP(807): vv start
07-16 15:50:48.252: INFO/mediaDuration3(807): -1
07-16 15:50:48.384: ERROR/PlayerDriver(554): HandleErrorEvent:
PVMFErrCorrupt
07-16 15:50:48.652: WARN/PlayerDriver(554):
PVMFInfoErrorHandlingComplete
07-16 15:50:48.652: ERROR/MediaPlayer(807): error (1, -10)
07-16 15:50:48.652: ERROR/MediaPlayer(807): Attempt to call
getDuration without a valid mediaplayer
07-16 15:50:48.652: ERROR/MediaPlayer(807): error (-38, 0)
07-16 15:50:48.794: ERROR/MediaPlayer(807): Error (1,-10)
07-16 15:50:48.794: DEBUG/VideoView(807): Error: 1,-10
07-16 15:50:48.794: INFO/MP(807): onError called
07-16 15:50:49.063: ERROR/MediaPlayer(807): Error (-38,0)
07-16 15:50:49.072: DEBUG/VideoView(807): Error: -38,0
07-16 15:50:49.072: INFO/MP(807): onError called
===================================================================================

Regards,
Yadnesh

-- 

2. How to custom build steps in Eclipse ADT plug in.

Hi,
I am going to perform unit testing on android applications like
contacts, mms, alarm clock etc. These apps are already installed in
the emulator/device. I have written some test cases. But facing
problem in running those tests. As the apps are already installed i
cant reinstall them as the target app of my test app. I want to use
Eclipse ADT plug in for running those tests. Now I need to set the
build steps according to my requirements so that when I build and run
the test app from Eclipse it doesn't want to install the target app
and it will just install the test app and run it. Is it possible?
please help me out their. Thanks in advance.

-- 

3. Where is source code (or git file) for ContactsContract.QuickContact

4. Radar View

5. Permanent socket connection drains battery

6. Splashing The Liquid (ACER Smart Handheld Competition)

7. Re[4]: WTA: Ada yang punyas aplkasi sms tembus pandang seperti ini?