Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00DAF11B3E for ; Fri, 20 Jun 2014 07:40:25 +0000 (UTC) Received: (qmail 42782 invoked by uid 500); 20 Jun 2014 07:40:24 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 42758 invoked by uid 500); 20 Jun 2014 07:40:24 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 42661 invoked by uid 99); 20 Jun 2014 07:40:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jun 2014 07:40:24 +0000 Date: Fri, 20 Jun 2014 07:40:24 +0000 (UTC) From: "Mestre Muten (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CB-6935) [Android][cordova-plugin-file] window.resolveLocalFileSystemURL can't resolve cordova.file.applicationDirectory URL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-6935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14038563#comment-14038563 ] Mestre Muten edited comment on CB-6935 at 6/20/14 7:39 AM: ----------------------------------------------------------- That was exactly what happened, I was redirecting using toInternalURL() method. Switched to toURL() and now all it's running prefectly. Thank you! My appologies for the waste of time. was (Author: mestremuten): That was exactly what happened, I was redirecting using toInternalURL() method. Switched to toURL() and now all it's running prefectly. Thatk you! My appologies for the waste of time. > [Android][cordova-plugin-file] window.resolveLocalFileSystemURL can't resolve cordova.file.applicationDirectory URL > ------------------------------------------------------------------------------------------------------------------- > > Key: CB-6935 > URL: https://issues.apache.org/jira/browse/CB-6935 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Plugin File > Affects Versions: 1.2.0 > Environment: - Samsung I-9100 Intl (Cyanogenmod 10.2, android 4.3.1) > - Samgsung GT-P5110 (Cyanogenmod 11, android 4.4.2) > Reporter: Mestre Muten > Labels: easyfix, patch > Original Estimate: 2h > Remaining Estimate: 2h > > As of version 1.2.0 of this plugin, some special directory paths were added under cordova.file.*Directory. > All of them seem to work, but "applicationDirectory" on Android platform doesn't. > This special directory equals "file:///android_asset/". > It calls fail callback with error code = 1 (NOT_FOUND_ERR). > For a simple test just call this on deviceready: > window.resolveLocalFileSystemURL(cordova.file.applicationDirectory, function(dirEntry){console.log('SUCCESS');},function(error){console.log('ERROR: '+JSON.stringify(error));}); -- This message was sent by Atlassian JIRA (v6.2#6252)