DmitryBaranovskiy / raphael

JavaScript Vector Library
https://dmitrybaranovskiy.github.io/raphael/
MIT License
11.26k stars 1.67k forks source link

Doesn't work in Android #244

Closed albertsun closed 13 years ago

albertsun commented 13 years ago

The library seems broken in Android. I at first thought my code was broken but after stripping out more and more still couldn't get anything to work.

Visiting http://raphaeljs.com/australia.html on my Motorola Droid running Android 2.2 gives me a blank page.

Visiting it with the Android emulator (running Android 1.5, it's been a long time since I've used it) gives me the following error in logcat.

D/WebCore ( 686): Console: ReferenceError: Can't find variable: Raphael line: 40 source: http://raphaeljs.com/australia.html

Others of the samples give similar errors.

DmitryBaranovskiy commented 13 years ago

Library is not broken in Android. Android is broken. It doesn’t have SVG support as a result it doesn’t work with Raphaël.

hthetiot commented 13 years ago

Dimitry, it is possible to add a Canvas driver like you have an SVG and VML one to add Android and old devices support for RaphealJS ?

bdarcus commented 13 years ago

I'd like an answer to hthetiot's question, or suggestions on how to move forward. This post seems promising, but not sure what to make of it WRT to mobile phones ...

http://googlesystem.blogspot.com/2011/02/android-honeycombs-browser-supports-svg.html