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

Adobe AIR Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 163
Registered: ‎07-16-2008
My Device: Not Specified
My Carrier: Sprint

Reading native photo albums?

Has it been confirmed where images that the user takes with the camera will be saved on the file system?

 

I'd assume a directory inside of File.documentsDirectory , but just want to make sure before I submit my app.

 

Thanks

Andrew Cowart | Metova
www.metova.com
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Reading native photo albums?

Unfortunately it has not been confirmed.

 

The app sandbox filesystem layout (I assume you've seen the threads on that?) include a "photos" subfolder under the shared folder.

 

The documents directory is another one under the shared folder.

 

I suspect you'll actually be looking at the equivalent of File.documentsDirectory.resolvePath('../photos') but that might not be for the camera itself.  Maybe the camera is at ../photos/camera or something, but I don't believe we've been told yet.  (And I can't believe we haven't been told even that, but that's another story...)


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: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Reading native photo albums?

Oh, I'd be remiss not to mention that in one webcast it was stated that the Flash CameraRoll API could be used for accessing the camera images, but I don't recall hearing that this was supported in any way on the simulator so we don't really know where those files will go.  Maybe you can just access things through that API, and test on the PC only.


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: 71
Registered: ‎01-06-2011
My Device: Not Specified

Re: Reading native photo albums?

Is there anything more known about this now?

 I'd like to allow users to select their own backgrounds from their photos for several of my apps, and it's actually a key feature for one of them.

---
My Apps:
KeepUp (http://appworld.blackberry.com/webstore/content/26514?lang=en)
Contributor
Posts: 27
Registered: ‎11-27-2010
My Device: Playbook
My Carrier: none

Re: Reading native photo albums?

I used the CameraRoll API and it works in the simulator, you can pick an image from the CameraRoll and add a image to the CameraRoll.

It doesn't have a lot of features (like jpg quality, filename etc) but it does its job,

alyhough I haven't tested it on a real device.

 

--------------


My Playbook App: FaceWarp
Highlighted
Developer
Posts: 163
Registered: ‎07-16-2008
My Device: Not Specified
My Carrier: Sprint

Re: Reading native photo albums?

The CameraRoll is the easiest solution for your needs.

 

The directory structure of the playbook is also now public,

Andrew Cowart | Metova
www.metova.com