Hello all,
I have a problem by using StageWebView in my AIR app for Androïd (Air 3.4 SDK)
In my app, I have a large part of html with rich contents (slideshows) with images, js and css (70 Mo) . I used StageWebView to display it.
In iOs, all works perfectly but not on Androïd.
1 / I searched on this forum and find this trick :
var source :File = File.applicationDirectory.resolvePath("html");
var destination:File = File.applicationStorageDirectory.resolvePath("htmlCopy");
source.copyTo(destination, true);
This solution freezes my Samsung Galaxy Tab 2, and crashs after few seconds because of the weight of my html folder I guess...
2 / I load my html page as a String with loadString() but all my path to images, css, js are broken. I did not success to fix it.
3 / I tried to use this API :
http://code.google.com/p/stagewebviewbridge/
I created a "www" folder, put my html in it and try loading my content but I always got compilations errors.
Exception fault: TypeError: Error #1009: Cannot access a property or method of a null object reference. at es.xperiments.media::StageWebViewDisk$/getFilePath()[/Users/xperiments/PROJECTS/Projects/OPEN/StageWebViewBridge/src/es/xperiments/media/StageW ebViewDisk.as:277]
Could you help me in a way ??
Thank you sooooo much guys.