On Friday, September 13, 2013 11:13:38 PM UTC+2, Marco Chen wrote:
> Hi,
> In V1.1, there are some changes on the DeviceStorage API and that is in order
> to support internal/external storage.
> V1.1 introduced a new "navigator.getDeviceStorages(...)" which will return an
> array of device storages.
> And old one "navigator.getDeviceStorage()" will return a preferred storage or
> the first storage in volume list.
> I think your problem is related to this change.
> Sincerely yours.
Yes, seems very probable, thank you very much!
Now, my problem is how to make the app compatible with both 1.0 and 1.1. If I
change the code to make it work in 1.1, it will no more work in 1.0. I guess
this is a general problem and that there is a solution to it, isn't there?
Another problem I have is how to test an app for 1.1, as the simulator is still
in 1.0, as far as I know. Or is there some way to make the simulator behave
like 1.1?
Thanks in advance,
Igor Leturia
>
>
> ----- Original Message -----
>
> From: "Igor Leturia"
>
> To: [email protected]
>
> Sent: Saturday, September 14, 2013 2:23:51 AM
>
> Subject: [b2g] Problem with sd-card API in Geeksphone Peak with Firefox OS
> 1.1
>
>
>
> Hello,
>
>
>
> I recently flashed my Geeksphone Peak with a Firefox OS 1.1 downloaded from
> they website, and an app I made that was working all right with Firefox OS
> 1.0 (it is in the marketplace,
> https://marketplace.firefox.com/app/hiking-guide) stopped working.
>
>
>
> The problem is that the sd-card API does not find any files in the card...
> And other apps seem to be having the same problem: for example, EPUBReader
> (https://marketplace.firefox.com/app/epubreader) seems to be having the same
> problem (it does not find any files in the SD card, although there are some
> epubs there.
>
>
>
> However, preinstalled apps (like Gallery, Videos...) find those files in the
> SD card all right. So could there be a problem with privileged apps that try
> to have access to the SD card? Maybe some change in the API? Or is there any
> known general issue regarding this? Or is it an issue of the Peak only?
>
>
>
> Any help will be appreciated. Thansk in advance,
>
>
>
> Igor Leturia
>
> _______________________________________________
>
> dev-b2g mailing list
>
> [email protected]
>
> https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g