开发者

Reading files within app bundle at runtime using Phonegap and Javascript

I've tried using the FileReader class but it only seems to allow access to files outside the app bundle -i.e. the documents folder. But I want to read files within the app bundle - for example obtaining global settings from Phonegap.plist, working out if certain f开发者_运维百科iles exist in the www folder and so on.

I have tried a few things but it doesn't seem to work. I can see in the PhoneGap native code it is reading from PhoneGap.plist but this doesn't seem to be available in the Javascript API.

It would be really helpful if somebody could suggest what I am doing wrong, or perhaps it's not possible and I need an update to PhoneGap that I can add to my app. I don't have a clue to program in Objective-C which is the main problem!!

Any ideas would be much appreciated.

Thanks Nick


http://www.clearlyinnovative.com/reading-files-within-app-bundle-at-runtime-using-phonegap-and-javascript

I wrote something to solve this problem

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜