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
New Developer
Posts: 24
Registered: ‎02-19-2013
My Device: Simulator
My Carrier: Simulator

Read Directory structure of "/accounts/1000/appdata"

Hi,

Is it not possible to read the dir/file list of "/accounts/1000/appdata" path?

When I try readin it using QDir::entryList it returns nothing. I have also added all the file permission.

 

Regards

Developer
Posts: 188
Registered: ‎07-19-2012
My Device: Z10 LE
My Carrier: Three

Re: Read Directory structure of "/accounts/1000/appdata"

Nope, the app is sandboxed to its own environment. The only shared space it can access is the phone's media (music, photos etc) with permissions.

 

https://developer.blackberry.com/cascades/documentation/device_platform/filesystem/



Did this post help you? If so, please make sure to "like" it!
New Developer
Posts: 24
Registered: ‎02-19-2013
My Device: Simulator
My Carrier: Simulator

Re: Read Directory structure of "/accounts/1000/appdata"

OK. Is there a way to get the list f installed application on the device?

I thought list of dir could be a way to get the app list.

New Developer
Posts: 33
Registered: ‎04-05-2013
My Device: Blackberry Z10
My Carrier: Maxis

Re: Read Directory structure of "/accounts/1000/appdata"

did you get any answer to your question? please share :smileyhappy:

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Read Directory structure of "/accounts/1000/appdata"

It's not possible.

 

Here's a response from someone from BlackBerry on the subject...

 

http://supportforums.blackberry.com/t5/Native-Development/Getting-list-of-installed-applications/m-p...


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 33
Registered: ‎04-05-2013
My Device: Blackberry Z10
My Carrier: Maxis

Re: Read Directory structure of "/accounts/1000/appdata"

somebody mentioned there :

Note, however, that apps which have never been launched will not have a folder there. It's auto-created at the first launch of a newly installed app.

 

can we at least conclude that those applications that has been launched at least once,are in this directory?

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: Read Directory structure of "/accounts/1000/appdata"

Yes I think so otherwise they wouldn't have run.

What is it you are trying to do? It may not be the same as the OP so might be worth you starting your own thread.

If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 33
Registered: ‎04-05-2013
My Device: Blackberry Z10
My Carrier: Maxis

Re: Read Directory structure of "/accounts/1000/appdata"

I'm not trying to write any app, I just wanted to know if I open this directory in the Momentics IDE, does it show me the luanched apps? and you confirmed that :smileywink: