BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-19-2010, 06:36 AM   #1
niceonedave
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 8800
PIN: N/A
Carrier: O2
Posts: 30
Default Application Memory Free Space??

Please Login to Remove!

I am looking into using the device storage space as part of an existing app, so I am investigating the capabilities of various devices. I have a bunch of devices that I can test on and I have written a simple bit of code that lists the roots available and the space available on each:

Code:
Enumeration enumeration = FileSystemRegistry.listRoots();
while (enumeration.hasMoreElements()) {
	String root = (String) enumeration.nextElement();
	Logger.forceLog("Root: " + root);
	FileConnection fc = (FileConnection) Connector.open("file:///" + root);
	Logger.forceLog("Size: " + fc.availableSize());
}
On the blackberry 9000 there were 3 roots: system/, store/ and SDCard/. I guess this is because it is the only device (I think) that has a large internal media memory? (system/ reported 25MB free, store/ ~900MB free and SDCard/ ~1GB free).

All other devices I have tried it on show SDCard/ and store/, so store/ refers to the Device Memory in this case, compared with system/ for the 9000. When I check in options->Memory I see 'Application Memory, Free Space' and this value is always more than the value given by fc.availableSize() for the root called 'store/'. Is this normal? Are they referring to different things?

In some cases there is not much of a difference, options reports 35MB, my log says 25MB. But in other cases the options menu reports 128MB free, but my log shows only 4MB free, so I am wondering what each of these values is actually referring to? Why does a totally fresh, vanilla device (8520 in this case) only have 4MB of free space?

I am basically trying to work out what assumptions I can make about devices and file system usage. Is it fair to say that if an SDCard is not present in a device that I should not rely on using the internal memory, because on some devices this might only provide a couple of megabytes?
Offline  
Old 08-19-2010, 08:31 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

The system claims a large chunk of that flash memory for swap space, so this may be why the values do not match.

It is safe to say that most older devices only have a couple of MB free if there is no card inserted. This is a big limitation compared with other platforms (Android and iPhone).
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS  picture

NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L CERAMIC BEARINGS

$80.75



A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board picture

A54MA55B and BC186A413G52 frequency converters A500/F540 series 55KW drive board

$350.00



Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW picture

Dentistry Replacement NSK TiMAX NL95M/ A500/ A500L/ AK500L/ AS500L /AW500L NEW

$79.95



1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ picture

1PC USED A54MA30B Mitsubishi F500/A500/A540 Series 30-37KW Mainboard #CZ

$228.00



1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ picture

1PC USED A54MA55B BC186A413G52 Mitsubishi A500/F540 Series 55KW Drive Board #CZ

$317.00



Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing picture

Commodore Amiga Time Base Corrector VT-2000 TBC II Digital Processing

$239.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.