Sure it does. I wrote code to do this on Sunday. http://simonmacdonald.blogspot.ca/2013/02/phonegap-android-xhrfilereader.html
Just double checked that if I send it the path file:///mnt/sdcard/robots.txt I am able to get the contents of the text file. Lemme know what the problem is. Although, I'm headed home right now. Simon Mac Donald http://hi.im/simonmacdonald On Fri, Feb 22, 2013 at 5:05 PM, Filip Maj <[email protected]> wrote: > Xhr won't resolve to temp/persistent areas, at least on android :s > > On 2/22/13 1:54 PM, "Simon MacDonald" <[email protected]> wrote: > > >What's XHR like reading something from the TEMP/PERSISTENT areas? > > > >Simon Mac Donald > >http://hi.im/simonmacdonald > > > > > >On Fri, Feb 22, 2013 at 4:45 PM, Filip Maj <[email protected]> wrote: > > > >> Check out the latest commit to mobile-spec to see the auto benches. I > >>will > >> work towards integrating with ci.cordova.io.. Eventually. There are so > >> many things to do in that project, I could use volunteers :D > >> > >> Anyways, for a prelim auto bench result, here is what I get on my Galaxy > >> Nexus running Android 4.2.2: > >> > >> Cordova.exec invocations (of Echo/echo plugin): ~3800 per second > >> Cordova.exec callbacks coming back (from Echo/echo plugin): ~3600 per > >> second > >> XHR to the LICENSE file and get contents back (11kb) WITHIN the > >> application www/ folder: ~2 per second > >> Use FileReader to retrieve contents of LICENSE file (11kb) that is > >>stored > >> on the TEMP FileSystem: ~135 per second > >> Use FileReader to retrieve contents of LICENSE file (11kb) that is > >>stored > >> on the PERSISTENT FileSystem: ~140 per second > >> > >> > >> The FileReader tests create the LICENSE file before the start of the > >> benchmarking, btw. > >> > >> Thoughts/comments/questions/feedback welcome. > >> > >> On 2/20/13 8:29 AM, "Andrew Grieve" <[email protected]> wrote: > >> > >> >It's not a bug-fix, so push to master :) > >> > > >> > > >> >On Tue, Feb 19, 2013 at 4:50 PM, Filip Maj <[email protected]> wrote: > >> > > >> >> K I've got a little bit ready. Just benches: > >> >> > >> >> 1. The # of exec invocations possible in a time interval > >> >> 2. The # of exec callback invocations possible in a time interval > >> >> > >> >> Now my conundrum is: where do I push this to? Next branch? Master? :( > >> >> > >> >> On 2/19/13 12:16 PM, "Andrew Grieve" <[email protected]> wrote: > >> >> > >> >> >Awesome stuff Fil! The first one is one that I tried before when > >>doing > >> >>the > >> >> >bridge benchmark and found it to not get accurate results. Had a > >>look > >> >>at > >> >> >the README.md of the second one, and it sounds pretty good. Looking > >> >> >forward > >> >> >to seeing what you come up with :) > >> >> > > >> >> > > >> >> >On Tue, Feb 19, 2013 at 2:41 PM, Filip Maj <[email protected]> wrote: > >> >> > > >> >> >> Raising this thread from the dead :) > >> >> >> > >> >> >> I'm thinking of either http://benchmarkjs.com/ or > >> >> >> https://github.com/akdubya/uubench > >> >> >> > >> >> >> Both apparently support async which is our only requirement AFAIK. > >> >> >> > >> >> >> Will mess aboot with adding both to mobile-spec and seeing how it > >> >>pans > >> >> >>out. > >> >> >> > >> >> >> On 10/26/12 11:09 AM, "Brian LeRoux" <[email protected]> wrote: > >> >> >> > >> >> >> >eh folks, any thoughts on using > >> >> >> >https://github.com/robohornet/robohornet for benching? > >> >> >> > >> >> >> > >> >> > >> >> > >> > >> > >
