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
Trusted Contributor
Posts: 224
Registered: ‎08-11-2010
My Device: Not Specified
Accepted Solution

Bold 9700 - info about device memory not available in system screens ?

hi all,

 

We have a strange problem with one of our customers.

 

When trying to save some data to

 

"file:///store/home/user/filename.txt"

 

app receives the following Exception:

 

net.rim.device.api.io.file.FileIOException: There is not enough free memory on the file system to complete this action.

 

We have advice the user to free some space on device memory, but to our surpise she send us a couple of screenshots that display large amount of free memory BUT they do not show statistics about "Device memory" at all.

 

screenshot Options / Memory

 

2838i79E626F1939F53A7

 

screenshot Options / Status

 

2839iD70136FACE9ECEE7

 

Does anybody has idea what's going on here ?

 

Trusted Contributor
Posts: 224
Registered: ‎08-11-2010
My Device: Not Specified

Re: Bold 9700 - info about device memory not available in system screens ?

Can you guys check what is displayed on the screen of your devices ?

Trusted Contributor
Posts: 224
Registered: ‎08-11-2010
My Device: Not Specified

Re: Bold 9700 - info about device memory not available in system screens ?

ok, I got a couple of simulators installed and here you can see the difference in Options / Memory screens:

 

Bold 9700

 

2843i2E9271BA1CB0E187

 

Bold 9000

 

2844i46CB77909D8275D8

 

Can somebody explain the difference between those two screenshots ? Why second one contains separate section for "device memory" while first one does not ?

 

Also - any idea what amount of memory is put aside for the file system ?

Trusted Contributor
Posts: 224
Registered: ‎08-11-2010
My Device: Not Specified

Re: Bold 9700 - info about device memory not available in system screens ?

Can somebody provide me with more info about different types of memory ?

 

What is application memory, what is device memory ?

Also why info about the second one is not displayed on some device models ?

BlackBerry Development Advisor
Posts: 15,070
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Bold 9700 - info about device memory not available in system screens ?

The Device Memory category on the BlackBerry Bold 9000 refers to the internal eMMC memory space present on the BlackBerry Bold 9000.  This is basically a built in micro SD card.

 

The BlackBerry Bold 9700 does not contain this.

 

Application Memory refers to the internal flash storage on both devices, which is 256 MB.

 

You may find this thread interesting.  It relates to the BlackBerry Storm, but the concepts are similar.

 

http://supportforums.blackberry.com/t5/Java-Development/What-exactly-is-quot-Application-Memory-quot...

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
Trusted Contributor
Posts: 224
Registered: ‎08-11-2010
My Device: Not Specified

Re: Bold 9700 - info about device memory not available in system screens ?

Thanks a lot  !

 

Can you tell me how/where the user can check the amount of free space on the file system - to prevent such errors ?

 

net.rim.device.api.io.file.FileIOException: There is not enough free memory on the file system to complete this action.

 

 

BlackBerry Development Advisor
Posts: 15,070
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Bold 9700 - info about device memory not available in system screens ?

The user can check using the same screens you have posted above.

 

You can check within your application by using the FileConnection.availableSize() method to make sure there is enough space before you perform your write.

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
Trusted Contributor
Posts: 224
Registered: ‎08-11-2010
My Device: Not Specified

Re: Bold 9700 - info about device memory not available in system screens ?

> The user can check using the same screens you have posted above.

 

Initial set of screenshots is from the actual user device - the one on which our app got

"FileIOException: There is not enough free memory on the file system to complete this action."

 

Our support team told the user that the problem is lack of free space on the file system and the reply was "Aren't 54 Mb enough ???" with the attached screenshots.

 

Screenshots show that "Free application memory" is 54 Mb, "File free" is also 54 Mb, but app cannot write to file "file:///store/home/user/filename.txt"

 

Any idea ? Should I ask the user to provide more info ?

BlackBerry Development Advisor
Posts: 15,070
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Bold 9700 - info about device memory not available in system screens ?

You'll need some more information from the user.  Are they able to create/save any files in that directory?  Do they have any IT Policies enabled that could be restricting a third party application from accessing that location?

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
Trusted Contributor
Posts: 224
Registered: ‎08-11-2010
My Device: Not Specified

Re: Bold 9700 - info about device memory not available in system screens ?

This user never replied, so we do not know what was the problem on his device, but here is some additional info that we found later


On 9700

* device memory" is subset of "application memory"
* "file system memory" is subset of "device memory"


Amount of available space for those two kinds of memories is controlled by two options in "Media" / "Options" screen: "Device memory" and "Reserve for pictures"


== Boundary case 1 ==

"Device memory: 5 Mb"
"Reserve for pictures: 2 Mb"

In that case, there will be only 3 Mb available for files outside of pictures directory.


== Boundary case 2 ==

"Device memory: 32 Mb"
"Reserve for pictures: 0 Mb"

In that case, there will be over 30 Mb available for files, which is plenty of space.

 

 

I can only suppose that our user had the first configuration.