Why this demo didn't run as expected | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0
11th Jun 2017, 10:53 AM
Hacen Med
Hacen Med - avatar
11 Answers
+ 2
Works on android lollipop with the latest version of system webview. do this try to save the code as HTML file e.g test.html with a file explorer and open it with a file explorer in chrome or Opera browser should work. or better yet copy paste the link in the browser.
11th Jun 2017, 12:33 PM
Lord Krishna
Lord Krishna - avatar
+ 10
So the problem is the animation of the rectangle (?) :3 @visph i have an "old version of WebView" (because of my OS) but it works.. @Hacen https://play.google.com/store/apps/details?id=com.google.android.webview
11th Jun 2017, 11:07 AM
Maz
Maz - avatar
+ 10
@Hacen, i know, it give me the same message, as i already wrote... it is because of our Android Version. :P If i remember correctly it is compatible with android versions after "Lollipop" :\
11th Jun 2017, 11:15 AM
Maz
Maz - avatar
+ 8
<svg width="1000" height="250"> <rect width="150" height="150" fill="orange"> <animate attributeName="x" from="-300" to="400" dur="3s" fill="freeze" repeatCount="2"/> </rect> </svg> <!-- Try this -->
11th Jun 2017, 10:55 AM
Maz
Maz - avatar
+ 3
This works exactly as expected ^^ Check your device android and webview version...
11th Jun 2017, 11:04 AM
visph
visph - avatar
+ 1
Your welcome, which method did you try?
11th Jun 2017, 12:43 PM
Lord Krishna
Lord Krishna - avatar
0
thanks. this didn't work too. just a static rectangle
11th Jun 2017, 10:58 AM
Hacen Med
Hacen Med - avatar
0
web view How? version of Android 4.3
11th Jun 2017, 11:05 AM
Hacen Med
Hacen Med - avatar
0
@Maz "your device is not compatible to this version" I have S3
11th Jun 2017, 11:11 AM
Hacen Med
Hacen Med - avatar
0
@Maz how I can get around the message
11th Jun 2017, 11:18 AM
Hacen Med
Hacen Med - avatar
0
@Lord Krishna thanks very much this really worked
11th Jun 2017, 12:42 PM
Hacen Med
Hacen Med - avatar