[
https://issues.apache.org/jira/browse/CB-11305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15301269#comment-15301269
]
zhuisui edited comment on CB-11305 at 5/26/16 1:29 AM:
-------------------------------------------------------
[~daserge] Another question to ask you, why I cannot see this issue in *My Open
Issues*?
And, I think I mistook you yesterday.
This code
{code:javascript}
window.resolveLocalFileSystemURL(cordova.file.applicationDirectory, function
(assetsRoot) {
assetsRoot.getFile('www/img/logo.png', null, function (image) {
document.getElementById('imageFileCdv').src = image.toInternalURL();
{code}
doesn't work on Android like "cdvfile://localhost/assets/path" do.
was (Author: zyf0330):
[~daserge] Another question to ask you, why I cannot see this issue in *My Open
Issues*?
> use cdvfile: cannot import image or js
> --------------------------------------
>
> Key: CB-11305
> URL: https://issues.apache.org/jira/browse/CB-11305
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File
> Affects Versions: 6.2.0
> Environment: cordova 6.6.1
> android 5.1.1
> Reporter: zhuisui
> Labels: android, reproduced, triaged, wfc
>
> I use cdvfile://localhost/assets/path to show img and import js, and it
> doesn't work. I haven't seen anything about using with assets, but
> window.resolveLocalFileSystemURL can handle it to native URL
> file:///android_asset/path, so I think it should be normal as expected.
> And I didn't test about cdvfile://localhost/temporary|persistent.
> And, I use cordova-cli 6.6.1, but it is not in "Affects Version/s".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]