incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon MacDonald <>
Subject Re: More issue gardening discussion: app root path
Date Fri, 22 Jun 2012 19:46:17 GMT
We floated this idea out once upon a time. The best resource I could find
on it was:!searchin/phonegap-dev/Android$20media$20question/phonegap-dev/5_eneTcPBYg/nItMozwh8QoJ

There are a number of practical concerns when it comes to implementing this
however. On all of the platforms the APPLICATION file system would be read
only which could cause some confusion among developers who want to write
files into this file system. IIRC Justin did not find a way to list all of
the assets on BB. That may have changed with the some of the more recent OS
versions though.

Way back in PG 1.1 I had the stubs for an APPLICATION and RESOURCE
filesystem in the code but it was shot down at that point as it did not
follow the W3C spec.

Simon Mac Donald

On Mon, Jun 11, 2012 at 7:54 PM, Filip Maj <> wrote:

> Reference issue:
> TL;DR: how can I reference in-app (inside the www folder) resources in a
> cross-platform way? For example, packaged .mp3 file, for use in Media.
> Some contributors recommend parsing location.href, but this is brittle and
> does not work on all platforms.
> My proposal: add a new constant to the LocalFileSystem object [1]
> representing the application root (e.g. APPLICATION). Users could then:
> function onSuccess(fileSystem) {
>    console.log(;
> }
> // request the file system of the app package www folder
> window.requestFileSystem(LocalFileSystem.APPLICATION, 0, onSuccess,
> onError);
> Thoughts?
> [1]

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message