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
Developer
AsriDwitiya
Posts: 62
Registered: ‎08-08-2008
My Device: Not Specified
Accepted Solution

How do i get default path folder store picture in blackberry?????

Hi All.,How do i get default path folder store picture in blackberry JDE 4.5.0??I need that for saving that image to RMS..I can't use FileSystemJournalListener because i use MIDP for develop my Application..Thanks...

Please use plain text.
Developer
richard_puckett
Posts: 191
Registered: ‎04-03-2008
My Device: Bold 9700

Re: How do i get default path folder store picture in blackberry?????

Please use plain text.
Developer
AsriDwitiya
Posts: 62
Registered: ‎08-08-2008
My Device: Not Specified

Re: How do i get default path folder store picture in blackberry?????

[ Edited ]

Ok..Thanks for your quick reply Richard...

 

But..it's have 2 default directory for saving a picture..I understand if i have Memory card,the pic will save in default directory in memory card,but if it haven't memory card the pic will save in default directory in device memory...

So,how i know that device have or not memory card ?????

 

 

Regards,,

 

 

Asri

Message Edited by AsriDwitiya on 09-23-2008 10:09 PM
Please use plain text.
Developer
AsriDwitiya
Posts: 62
Registered: ‎08-08-2008
My Device: Not Specified

Re: How do i get default path folder store picture in blackberry?????

[ Edited ]

Yupss..I know how the way to detect memory card.,,

But how i know That device use Memory card or device memory for store that picture????

 

Thanks Richard...

Message Edited by AsriDwitiya on 09-24-2008 12:30 AM
Please use plain text.
Administrator
MSohm
Posts: 14,434
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: How do i get default path folder store picture in blackberry?????

You can use the FileSystemRegistry.listRoots method to get a list of file system roots on a BlackBerry.  Each memory store has its own root (i.e. micro SD card, built in memory, etc...).
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.
Developer
AsriDwitiya
Posts: 62
Registered: ‎08-08-2008
My Device: Not Specified

Re: How do i get default path folder store picture in blackberry?????

[ Edited ]

Oh thanks Mark.,

 

but how i know that pic in listroot is a new picture?????Before i use FileConnection and Enumeration.list

 

 

Thanks.,

 

Asri

 

 

Message Edited by AsriDwitiya on 09-24-2008 10:15 PM
Message Edited by AsriDwitiya on 09-24-2008 10:18 PM
Please use plain text.
Developer
AsriDwitiya
Posts: 62
Registered: ‎08-08-2008
My Device: Not Specified

Re: How do i get default path folder store picture in blackberry?????

Thanks All.,

 

I found that way.,I just use FileConnection and enumeration.,That's all...

 

Asri

Please use plain text.