space on the SD card

Hi, to check the total/used/free space of the SD card, I use this code:

  try{
        _fileConnection = (FileConnection)
                      Connector.open("file:///SDCard/");

 long _totalSpace = _fileConnection.totalSize();
long _usedSpace = _fileConnection.usedSize();
long _freeSpace = _totalSpace - _usedSpace;     

            }catch(Exception e){    }

for 1 GB I got:

_totalSpace = 1014218752

_usedSpace = 658554880

_freeSpace = 355663872

in that it is? cause for sure not in bytes.

How can you be sure that's not in bytes?

It is expressed in bytes.

1024 bytes = 1 KB

1048576 bytes = 1 MB

1073741824 bytes = 1 GB

It is true, but actual byte ranges from a few thousand...

See you soon...

Edit: Fixed grammar...

Tags: BlackBerry Developers

Similar Questions

  • Free space on the sd card

    Is it possible to check if I have free space on my sd card?

    something like: sdCardInfo.isFreeSpaceAvailabe ()?

    #include
    bool deviceHasFreeSpace (QString destinationFileSystem)
    {
    BB::FileSystemInfo fileSystemInfo.

    freeSpace qint64 = fileSystemInfo.availableFileSystemSpace (destinationFileSystem);
    If (freeSpace ==-1) {}
    qWarning()< "failed="" to="" get="" free="" space="" -="" "=""><>< "("="">< filesysteminfo.error()=""><>
    Return (false);
    }
    Return (true);
    }

    https://developer.BlackBerry.com/native/reference/Cascades/bb__filesysteminfo.html

  • How to clear space on the sd card

    on my android, repeat me that my memory of devices is full. I can't seem to clear enough space no matter how I remove, in addition to that, I had deleted, uninstalled, or moved an app called root, and now I can't go on the internet. I have not activated the phone but it is averizon flashed to cricket. and I am 100% sure that it wasn't the "SOVIETS" that messed up... can some help me please get it back to where it can be... with forgettting or asking to help a lot with the root of my problem... the memory on the card sd... ok so and thank you for your patients, listening and reading.

    Hello

    You should check with the manufacturer of your phone support.
    The hardware or the OS (Android) is a Microsoft product.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Apps moved to SD card still reserve a space in the internal memory

    One of the features most appreciated by many in the update of the pacifier should be the ability to move applications to the SD card. Now, a lot of apps is also installed with their data on the default SD card.

    But when this is done, the same amount of space is always reserved for the internal storage, which fills up very quickly. As a result, there is not enough space to store several apps over no matter how large a SD card installed.

    The amount of space available to the user also decreased, with Lollipop itself, compiling applications through ART and some new bloatware. There is not enough space to do much any more. The user is left may 7 GB, some of which must be reserved for the slack. "16 GB" storage is not enough.

    I asked for an explanation.

    When you move an app to the SD card in Android, Android only move as described apk file here: http://developer.android.com/guide/topics/data/install-location.html. It's standard for Android and non-specific for our devices.
    The path to the ÖBB for example knows the app so if you were to move the app can not find. In my view, there are also security issues involved here because it is a removable storage and the file system used.

    But it is possible that some phones use alternatives for applications but I got a little curious when you say that it works on Galaxy S5 and S6. I know a person who has both and asked him to test and S5 has not moved the ÖBB and the S6 does not even support the external SD cards?

  • Tecra M2: Can play a game of the graphics card?

    It seems that play Flight Simulator could destroy the graphics card on the laptop! I never thought this would be possible. I gave a friend my old Tecra M2 (as a wedding gift) which he also uses to play FS9. A few years ago, he had to have the motherboard replaced (Fortunately it's still under warranty then) because it has become defective. This has happened while he was playing FS9. I never thought that at that time.

    It seems like the same problem comes up again, but this time the laptop isn't under warranty anymore. Nothing has been changed on the video card to "accelerate" or "chip" or another - it is standard at the factory. The latest drivers are installed for the Nvidia GeForce FX Go5200 32 M / 64 M and the portable computer has 1 GB of RAM (and a lot of space on the HARD disk).

    At startup, the Toshiba logo has green vertical lines. The Windows logo also has the same symptoms, the vertical lines. I was able to boot in safe mode, a few times, then it started normally (I was onto a winner of thought), but now it seems just blue screen and reboot after Windows Logo (even if I didn't no reset in case of failure). After the reboot, I got a blue screen (BSOD not usual) with the next STOP: 0x0000007E (0xC0000005, 0 x 01010101, 0xF7911378, 0xF7911074).

    Any ideas? I'd be really upset if I found out that a game could physically cause a motherboard to replace on a laptop! If this is true, can someone tell me how to prevent it in the future? I have a Tecra M3 and I don't want to happen to me either!

    Thank you!

    -Emm.

    Hi mate,

    the fact is that I would NEVER play FS9 even on my machine which is a Pentium 4 3.0 Ghz with 1 GB of RAM and a geforce 7800GS.
    Flight Simulator 9 needs AS many system resources and in your case it s like you take 500 tons of steel and throw on a single donkey.

    The M2 is a pure business machine and not scheduled to play these games like FS9 needing beasts of machines to run * correctly *. Maybe the older games are playable, but I think that it s right that FS9 could probably damaged your graphics unit (overheating).
    You won´t move swap the motherboard and let your FS9 fingers when you hold an M2 or M3 or a set of non-game in your hands.

    The man, who is ill, the poor M2 then FS9... :D

    Clear from the statement to me: Yes, a game CAN probably damage a portable system, but not for sure! And an M2/M3 is not to play these games. Rather spent the money for a system with a Geforce 8600 Core2Dou or something similar.

    Welcome them

  • Want to Phoenix 850-150qe: program file can not be updated as a not enough space on the new computer

    I have a new computer with disk 3 TB initially space.  I have now available 2.60 TB.  I have this simple little card game that has an update of 207 MB of available space required.  Whenever I try to load it, it says "program file can not be updated because of insufficient disk space".   The original game loaded just fine but not the update.  I wrote to the company that has given me a standard introductory text on turn off my antivirus which is nothing to do with my problem.  Someone else has encountered this and if yes, what is your work-around?  I am trying to load it on the C drive with my game so am loading at the right side of the road.

    I solved my problem.  I went back to my computer and I went back to my reliable want 700-074 also having windows installed 10.  My little program works very well and I was able to update the program.  This program was one of the many problems with this computer.

  • HP 500 - a 201: the video card upgrade

    Hi, I would like to upgrade the video card in this PC HP but I think that there is a limited space.  I think like a 750ti which is the closer the physical map of the factory installed measures.  I would upgrade to a proper diet.

    Thank you

    Brad

    @Cebos, welcome to the forum.

    I believe that this EVGA GTX 750Ti should register in the area without any problem.  If you don't want this card, you can measure from the port of e/s back on the front of the case where the card will be installed to see if another card adapt.  The essence is to ensure there is enough space to provide for good air circulation.

    Please click on the button + Thumbs up if I helped you and click on accept as Solution If your problem is resolved.

  • What kind of update of the graphics card I can do on my HP 810-135qe

    I have a new HP 810 - 135qe that I am satisfied except for the graphics card.  Someone has an experience like this and found a solution for a good replacement?

    Ron, welcome to the forum.

    I have the same computer.  The power supply 600W (PSU) allows you to purchase most of the newer cards intermediate level on the market.  The main concern is the length of the card you purchase.  I suggest to find a map and get the dimensions of it.  Then, you can create a model to see if it will fit.  Add an inch for a card with additional power connectors.  I usually recommend 9 "or less if you don't measure the space.

    I love EVGA, Sapphire, XFX and PNY in that order.  Here's a map that fits and it has good reviews.  Read them to see what users have to say about it.  A critic, a tech, said he is only 11% slower than the HD 7950 for $200 less.

    Please, click on "Thumbs Up +" if I helped you and click "Accept as Solution" If your problem is resolved.

  • satellite 2410-603: the graphics card upgrade?

    I have a satellite 2410 603 with a geforce4 420 32 MB card. I want to run games that require directx 9. 0a.
    I seems that my card will not support it. The laptop / card can be upgraded to one that can support 9. 0 or it is part of the motherboard for the laptop and I'm stuck with it?

    Hello

    Sorry I had to say that it is impossible to update a graphics card in a Toshiba laptop.

    A laptop is a very complex machine and there is no space for construction in the slots scalable i.e. I have desktop computers!

    It's ufortunately one disadvantage of a laptop, but instead, you have some advantages like mobility, compactness and so on!

    You could show https://eu.computers.toshiba-europe.com (products) If you want to buy a new one! :-)

    Happy new year!

    Tom

  • Upgrade the video card

    I have a HP Pavilion h9-1187 windows 64 - bit pc with nvidia GeForce GT 530 by default.  I need to upgrade the video card, but this motherboard has only one of pci express 16 3.0 slot.  Almost all decent video cards require two slots.  I guess that most cards except those in the crossfire, two cards together configuration, must the two slots.  Most of the time, I guess the seller asking two slots due to the space.  Remove the CAP from my pc and possibly void the warranty, can someone tell me what video card width this pc may take.   I have the motherboard COMPANY PEGATRON, the default value.  If you care to recommend a video card decent all 250-300us about feel free.  Thank you. Apologies, but as a newbie I also posted this in the hardware section of the bureau of the forum as well.  I'll delete the entry that is in the wrong part of the forum.

    When a card is listed as having "two slots", this means only that he would hold the PCIe x 16 location and regardless of the slot is adjacent. It does not require a connection to more than the PCIe x 16 slot. Looking at the photo below, the long black slit under the "IPMMB-FM" is the PCIe x 16 graphics card slot. "The slot short slot needs to be empty, then the '2 locations' map can adapt it without connection to this.

    Almost any card graphics PCIe 2.0, 2.1 or 3.0 will work on your computer. Please look at these PCIe x 16 graphics cards for a selection in your price range. Please see Guide of Dave_G of a discrete video card selection of useful information on the subject.

  • Desktop HP Pavilion 500-342nem: can I upgrade my desktop computer hp pavilion 500 with the graphics card AMD RX 480 replacing edge R7

    I plan to upgrade my hp pavilion 500-342nem, who was already A7 graphical 240 with the new 480 RX.

    Is it possible to upgrade both the power supply and graphics card?

    There will be no problem of compatibility (PSU Corsair CX 500 questioned?.)

    I heard a lot of chatter on hp restricting the upgrade of their pc.

    The new card will work?

    Any help will be apppreciated.

    @Jeffrin98, welcome to the forum.

    I cannot find the specs of the product to the computer.  So, here's what you need to do.  Press Start + R from the view of the office.  This will open a run dialog box.  In the box labeled type msinfo32 opened.  In the page that opens, check the option titled Mode BIOS.  If he says UEFI motherboard is supported by the video card.  If this isn't the case, you will not be able to move forward.

    The next step is to measure the space where the card will be installed to ensure that it fits.  Measure from the back i/o port to the front of the case.  This will allow you to see if other ingredients will limit the installation.

    The CX500 Corsair power supply (PSU) should work.  However, check how much power requires the video card.  It may be better to buy a PSU with 600W.  High power will be used during peak power needs.  In addition, the card may require additional power connectors.  Also, I recommend a modular power supply.  It allows you to use only the cables that are absolutely necessary, create better air circulation.  It is very important with more powerful graphics cards.  The heat can be much larger.

    Please click on the button + Thumbs up if I helped you and click on accept as Solution If your problem is resolved.

  • A1000-F - Miss internal space during the installation/upgrade to update apps

    I just bought this model, it is sufficient for my needs with one exception.

    Internal card is 16 GB and is probably divided at least two partitions for system/apps is granted only 512 MB.

    I installed only a few apps and moved if possible, in the second partition (/ data media), but updating applications from GooglePlay, system tells me, I'm running out of space (have 150 MB of free space on the system partition and 13 GB free on the data partition).

    For example, Chrome browser removes 71 MB internal memory of 512 MB and can not be moved to the storage internal USB (data/media), it is the same for drive Google, Google, Google News, etc.

    Why the system/app is not partition at least 1 GB in size, probably others struck the same problem I have. Did Lenovo know on this issue and planning at this address with an update? If not, is there an easy way to resize or merge partitions?

    Thanks for the advice (remove all my Google Apps would be a solution, but not one I need).


  • Upgrade the video card on HPE-112Y

    Hey, I've been looking to update my video card in the HPE-112Y, but honestly, I know almost nothing about computer hardware. How will I know what types of cards will work, or adapt? Do I need a better diet? What types of cards are actually good and worth the money? Help please, thank you.

    furrysparks has writtenkay, one last question. These two cards physically enters the computer?

    Hello furrysparks, here are the dimensions on both cards.

    NVIDIA GTS 250 product Dimensions: 9.5 x 2 x 4.4 inches

    Dimensions of the XFX HD-577 X 8.8 "x 4.4" card

    Remember that the cable connects to the back, so it will take just a little more space in the case that these dimensions.

    Just to be safe, I unplug the power cord and remove the Panel and measure the space between the end of the slot of the motherboard at the back of the case and the front of the PCIe x 16 slot. This measure should be at least 10 to 10.5 inches for the Nvidia card and 9, 5-10, 0 inches for the XFX card.

    I noticed that the Nvidia card has each of the HDMI, VGA, DVI connectors while the XFX card has only 2 DVI and a mini-Port connector. This cannot be a factor if you use DVI or have or are looking for an adapter DVI to HDMI if you wish.

  • Mini Mac; Windows can be installed on the SDXC card to start and run windows

    I was wondering if I could install Windows 10 to the SDXC card slot and run the card SDXC of Windows?   I rarely use Windows and I would ' t need you worry too much space Mac.  I thought I could unplug the unit out of the machine most of the time, leaving the slot for use with other storage devices so that I do not use Windows.     My HARD drive is full & I thought it would be nice to have a Windows machine that would not take more space on my HARD drive.

    Mac Mini (late 2012) 2.5 GHz Intel Core i5 with 4 GB of memory running with OX El Capitan 10.11.1

    No, but you can try cloning once installed on the internal drive.

  • Wanting to update the graphics card for a m8517c

    Could someone tell me if I am able to update graphics in my HP m8517c

    Here is a link to my system specs...

    http://support.HP.com/us-en/document/c01486309

    I want graphic better due to the fact that a lot of my boys want to play PC games does not work because of the graphics card.

    Thank you

    Ladungan, Yes, you can switch to a dedicated PCI Express x 16 video card.  However, there are three considerations.  First is the power of the power supply (PSU) and the second is the size of the map.  You can determine the power of the PSU in opening the case and by reading the label on.  You can determine the size of the required map by taking measures in the space provided.  Open the case.  Measure from the edge of the case to the opposite side of the motherboard where the PCI Express slot.  It's the approximate card that fits.  In addition, many new cards are double profile (two locations).  These can present problems of space.  Thirdly, it must ensure that the power supply has the connectors appropriate for the video card.  Some require more power.  In this case, you probably need the power supply.  It costs somewhere around $100.

    If you like help to choose which card you would work, let us know.  With the power of the PSU, we can make that determination.

Maybe you are looking for

  • I'm having problems with an outdated Apple ID

    I have problems with updating Apps etc in my Apple account because he always asked an obsolete in sign.  How can I change this?

  • Do I need an external hard drive if I use iCloud?

    Do I need an external hard drive if I use iCloud?  I had used a Western Digital My Book Essential Edition, 500 GB, for the past 7 years.  It kept blinking and blinks so I unplugged probably too old. Now, I'm wondering if I should get another external

  • dv7-1279wm wireless driver not installed but worked before

    My wireless turn on the good, and now it does not and says that the driver is not installed. Ugh I tried everything HELP PLEASE!

  • Error message@Startup C:\Users\Owner\AppData\Local\egaluxocaciris.dll

    Hi all I have an error mesg I get every time I startup or restart my system.  It is this "C:\Users\Owner\AppData\Local\egaluxocaciris.dll" I looked in the event viewer in administrative tools and I can't find anything with this name in the entire cha

  • Help to buy a new battery.

    I have a HP Pavilion dv7-6157 CL. product number: LW465UA #ABA. My battery is is more licensee a load and I am looking for a replacement one. I went to partsurfer and got PN 636631-001. Any battery on ebay with this job number will be? What should I