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

Java Development

Reply
New Developer
joven
Posts: 37
Registered: ‎10-06-2008
My Device: Not Specified

Finding Picture Folder Pre 4.3

I am trying to write an app that lets the user select an image from their pictures folder. I found a related knowledgebase article that describes how to find the pictures folder path using System.getProperty(), but this is only supported for JDEs 4.3 and greater. Does anyone have a good approach for doing the same thing in 4.2?

 

Thanks,

Andy

Please use plain text.
Administrator
MSohm
Posts: 14,410
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Finding Picture Folder Pre 4.3

You could allow a user to configure this by selecting the folder.  The fileexplorerdemo could be used as a base for this.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
joven
Posts: 37
Registered: ‎10-06-2008
My Device: Not Specified

Re: Finding Picture Folder Pre 4.3

Thanks for the idea Mark. I'd like to avoid making the user set anything up. Ideally, they would be brought immediately to the pictures folder used by the Media and Camera applications. I doubt most users know where this lives in the file system. (I certainly have had difficulty figuring out where it is) Do the Media and Camera applications store this somewhere in jde 4.2? Am I even correct that System.getProperty("fileconn.dir.photos") will get me this information in 4.3 and up? 

 

Thanks,

Andy

Please use plain text.
Administrator
MSohm
Posts: 14,410
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Finding Picture Folder Pre 4.3

This property is available in BlackBerry handheld software version 4.3.0 and higher.  There is no API to obtain this information in prior versions.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.