Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 154
Registered: ‎02-01-2009
My Device: Torch, PlayBook and Dev Alpha
My Carrier: SFR

BB OS10 issue - SDCard can't be browsed

[ Edited ]

Hi,

 

The OS10 has a big issue to manage the sd-card.

 

When I browse the SD card from the natife file manage, I can see all the folders and all the files.

 

When I use a third application (in my case PlayCloud 10), I can't see all files & folders. I have checked with the QNX Momentics IDE (SSH connection) the file permissions. It seems that the permissions are same for each files & folders !

 

So I don't understand the issue. I have tried the QDir iterator (so QT way) and opendir / closedir (so C way), and same result, I can't see some files & folders Smiley Sad

 

Here, PlayCloud can see file :

$ ls -l /sdcard2/photos/Photos\ contacts/
total 121
-rw-rw----   1 root      1000_shared      2152 Nov 25  2010 IMG1.jpg
-rw-rw----   1 root      1000_shared      2325 Dec 27  2010 IMG2.jpg
-rw-rw----   1 root      1000_shared      2103 Dec 18  2010 IMG3.jpg
...

 

 

Here, PlayCloud can't see file :

$ ls -l /sdcard2/photos/Famille/
total 21425
-rw-rw----   1 root      1000_shared    186369 Feb 22  2009 DSC00186.jpg
-rw-rw----   1 root      1000_shared    192564 Feb 22  2009 DSC00190.jpg
-rw-rw----   1 root      1000_shared    206195 Feb 22  2009 DSC00191.jpg
....

 

All the permissions are same :

$ ls -l /sdcard2/photos/                  
total 251
drwxrwx---   2 root      1000_shared     32768 Feb 18 17:31 Famille
drwxrwx---   2 root      1000_shared     32768 Sep 15  2009 Photos contacts

 

Regards,

 

Nicolas

 

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: BB OS10 issue - SDCard can't be browsed

What you posted doesn't make sense. Could you please re-read it and see whether you mis-typed something?

As it is, it says PlayCloud "can see all files & folders" but then later seems to say it cannot. Unclear what the issue is.

Also, is PlayCloud your own app? You say this is a BB10 issue but I get the impression you're actually saying you are developing this app and are having problems getting it to work... If it is your app, you might need to show some code snippets, since this doesn't sound like a common issue that others are reporting.

Maybe you're just missing the "Shared Files" permission on your app.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 154
Registered: ‎02-01-2009
My Device: Torch, PlayBook and Dev Alpha
My Carrier: SFR

Re: BB OS10 issue - SDCard can't be browsed

Sorry, for errors. I have just fixed them.

 

Indeed, PlayCloud is my application. I haven't got this issue on the dev alpha with previous OS.

 

But I have just received my z10 and I have checked the users feedback about this issue and indeed, I confirm the issue.

 

I don't need to share code, QDir iterator and opendir / closedir is enough easy to use !

 

AND you can see the same issue in using the BlackBerry Web browser with URI = file:///sdcard2

 

Nicolas

 

Developer
Posts: 154
Registered: ‎02-01-2009
My Device: Torch, PlayBook and Dev Alpha
My Carrier: SFR

Re: BB OS10 issue - SDCard can't be browsed

[ Edited ]

I add screenshots :

 

IMG_00000001.png

 

So Native file manager sees files...

 

IMG_00000002.png

 

PlayCloud no !

 

IMG_00000003.png

 

And BlackBerry web browser neither !

 

Nicolas

 

Highlighted
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: BB OS10 issue - SDCard can't be browsed