Wednesday, July 13, 2011

[android-developers] SVG in android 3.0

Hello,
We are going to develop an android application for show a autocad
drawing file in svg format in which ecma script is using. We have
tested the application in emulator and opened the svg file in webview.
our problem is that ecmascript in XML tags are not executed in webview
in android. We know that android is supporting SVG from 3.0 only. Does
it not support ecmascript in svg?

Thanks in advance


final String mimeType = "text/html";
final String encoding = "utf-8";
final String html = "<p><img height=\"600px\" width=\"600px
\"src=\"file:///android_asset/drawing3.svg\" /></p>";

WebView wv = (WebView)
findViewById(R.id.webview_component);
wv.getSettings().setJavaScriptEnabled(true);
wv.loadDataWithBaseURL("fake://not/needed", html,
mimeType, encoding, "");


Ragards
Shibu

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment