Re: Android file chooser

2013-02-12 Thread Max Woghiren
Okay—I'd like to add an Android file picker plugin to core Cordova in light of the shortcomings with . I've created a bug hereand will create a pull request tomorrow (barring any objections, of course). On Tue, Feb 12, 2013 at 11:10 PM, Simon MacDona

Re: Android file chooser

2013-02-12 Thread Simon MacDonald
Well, I didn't want to add an external dependency to Cordova to have a 3rd party app doing the file picking. It would be great to have something like this in Cordova and we've had some success with but it's not all the way there yet. For now this'll remain a plugin. Simon Mac Donald http://hi.im/s

Re: Android file chooser

2013-02-12 Thread Max Woghiren
Just to be clear, I'm asking whether it would be useful to add a file picker plugin for Android to core Cordova. On Tue, Feb 12, 2013 at 10:49 AM, Max Woghiren wrote: > Thanks Simon. > > The file picker code in that project looks similar to what I was thinking > might be useful to add to Cordov

Re: Android file chooser

2013-02-12 Thread Max Woghiren
Thanks Simon. The file picker code in that project looks similar to what I was thinking might be useful to add to Cordova itself; however, in the Corinthian philosophy, you mention that this sort of thing isn't necessarily within the scope of Cordova. Does that mean you believe this type of plugi

Re: Android file chooser

2013-02-11 Thread Simon MacDonald
Check out some code I wrote in a side project that can do it. https://github.com/macdonst/corinthian Simon Mac Donald http://hi.im/simonmacdonald On Mon, Feb 11, 2013 at 3:05 PM, Max Woghiren wrote: > You're right about the FileUtils API, but I need a Cordova File object to > access those metho

Re: Android file chooser

2013-02-11 Thread Max Woghiren
You're right about the FileUtils API, but I need a Cordova File object to access those methods. yields a native File object, so, for instance, I can't use FileWriter with it. Native File objects also don't have full paths, which are useful (eg. for FileTransfer.upload, which requires a full path

Re: Android file chooser

2013-02-11 Thread Joe Bowser
I'm not familiar with Chrome's API, but I believe that there is a FileUtils API as well as the File Picker that Simon added a release ago that fires an intent to pick a file if you have a file picker installed. (Note: I don't use one, so it brings up the Gallery, Audio Player and other things assoc