Closed GoogleCodeExporter closed 8 years ago
Hi, i have not tested the codee to run in android... Can you be more
specific... Thanks
Original comment by xperime...@gmail.com
on 2 Jun 2011 at 5:05
Hi, i have not tested the codee to run in android... Can you be more
specific... Thanks
Original comment by xperime...@gmail.com
on 2 Jun 2011 at 5:05
The CacheFileSystem doesn't work because you have to write on the storage, I've
modified the StageWebViewBridges.as using File.applicationStorageDirectory.
Anyway the Communication still not working.
Original comment by iox...@gmail.com
on 2 Jun 2011 at 5:41
I have find some time and machine ( Android ) to test with...
As you comment the problem with Android is that we can't write to the
application directory as is really a "pseudo-zip" and the nativePath of the
"app:/" returns blank.
As you say the workarround is to move the cache filesystem to the
File.applicationStorageDirectory. But this implies that you double the space
used by your content. For little projects with only a few files there is no
major problem, but imagine an app that contains a huge amount of
videos....!!!!!!
The problem with the communication is solved deleting the window.alert rewrite
code from the StageWebViewBridge.as and StageWebViewBridge.js.
Seems that the Android webkit don't like this!!! grrr
DELETE THIS LINES FROM StageWebViewBridge.as and StageWebViewBridge.js.
// workaround to fix application crash when window.alert is called directly
from AS3
window.alert = function(native)
{
window.nativeAlert = native;
return function(str)
{
setTimeout('window.nativeAlert("'+str+'");',10);
}
}(window.alert);
Anyway, I am testing some other methods for do a good workarround....
Original comment by xperime...@gmail.com
on 15 Jun 2011 at 1:58
I've not found time to find out out why, but on testing with ipad I find I am
unable to write to applicationDirectory, so cacheFilesytem of course fails
unless I change it to use applicationStorageDirectory.
Any ideas on how/why this might happen? I'm using AIR 2.7, ios is at least one
version behind the latest release on this ipad.
On the nativeAlert thing, AIR webkit can have some issues with
setTimeout(stringToExecute) I've found. This is documented in fact.
You have to use the form setTimeout(function() {window.nativeAlert(str)},10);
Anyway, thanks for the source, it looks like it might be enough to do want I
want to do one way or another
I expect my syntax is bad in the above line, but you get the idea (I hope! I
also hope I'm not entirely wrong about that :) ).
Original comment by hayes....@gmail.com
on 22 Jun 2011 at 12:45
Someone find a way to display html files on Android with local video inside ?
I cannot play <video> in Android plateforme (ok on IOS).
If I use a direct link (http:// ...) for the video source, it works, but failed
with local video (applicationStorageDirectory or other temp folder)
Original comment by thibault...@gmail.com
on 28 Jul 2011 at 8:15
Original comment by xperime...@gmail.com
on 19 Sep 2011 at 3:31
Original issue reported on code.google.com by
iox...@gmail.com
on 31 May 2011 at 1:54