Hi Hugh,

----- Original Message -----
> From: "Hugh Tay" <[email protected]>
> To: [email protected]
> Sent: Monday, January 20, 2014 7:36:21 AM
> Subject: [b2g] Trouble accessing the SD card from the Emulator build
> 
> Hello there,
> 
> 
> Nice to meet you. I'm having trouble performing file operations on the SD
> card through my Certified-level app.
> 
> - 
> I've added the permission to my webapp.manifest -
> 
> "device-storage:sdcard" : { "access": "readwrite" }
> 
> -
> 
> And I've verified that run-emulator.sh contains -
> 
> SDCARD_SIZE=1024M
> SDCARD_IMG=${SDCARD_IMG:-${B2G_HOME}/out/target/product/${DEVICE}/sdcard.img}
> 
> -
> 
> Yet the API navigator.getDeviceStorage("sdcard") still insists on throwing
> Null at me and I don't know what to do.
> 
> Is this an issue with the Emulator build or is there some way to enable
> SD-card functionality on the Emulator?

So I tried running ds-test (which has the DS icon). (I left the SDCARD_SIZE at 
its default).
It seems to be running fine in the emulator.
I chose "Add & Del Unnamed File"

You can find the source for ds-test in gaia/test_apps/ds-test

Was the certified app installed as part of the emulator build?

I was running master fetched from last night. Were there any messages in logcat?

Dave Hylands
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to