Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
How find Total Space
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Best way to include lots ...
by
VTwin
[
Today
at 09:42:11 pm]
How to download a file fr...
by
jmpessoa
[
Today
at 09:39:32 pm]
.cvd ClamAV database comp...
by
Turkeytmfounder
[
Today
at 08:56:29 pm]
Changes in "Search Result...
by
n7800
[
Today
at 07:26:45 pm]
Are We Dead Yet?
by
Warfley
[
Today
at 07:05:07 pm]
Working with the canvas o...
by
Jonax
[
Today
at 05:31:27 pm]
ControlAtPos Behavior
by
Zoran
[
Today
at 04:24:32 pm]
Any way to intercept stdo...
by
BobDog
[
Today
at 04:20:18 pm]
TDBGrid extended like Acc...
by
dsiders
[
Today
at 03:49:48 pm]
Improvement of procedure ...
by
Martin_fr
[
Today
at 03:20:51 pm]
How do I set these packag...
by
lazpas
[
Today
at 01:30:01 pm]
How can I capture all key...
by
jamie
[
Today
at 12:54:37 pm]
general reference manual ...
by
simone
[
Today
at 12:38:19 pm]
[SOLVED] Help for downloa...
by
rvk
[
Today
at 12:24:10 pm]
Clean up at ide/include/i...
by
JuhaManninen
[
Today
at 11:21:20 am]
[SOLVED] LAMW BackButton ...
by
c4p
[
Today
at 08:33:39 am]
help choosing laptop
by
dbannon
[
Today
at 07:38:49 am]
any one knows how to set ...
by
greenzyzyzy
[
Today
at 06:51:53 am]
TBufferDataSet List Index...
by
eldonfsr
[
Today
at 01:54:18 am]
Tips for deep debuging of...
by
Grew
[June 03, 2023, 10:46:22 pm]
discarding an array
by
robert rozee
[June 03, 2023, 09:54:10 pm]
TSynEdit crashes when loa...
by
Martin_fr
[June 03, 2023, 09:37:47 pm]
How to create form in thr...
by
PascalDragon
[June 03, 2023, 07:22:32 pm]
Who uses "caret past EOL"...
by
Martin_fr
[June 03, 2023, 06:34:39 pm]
array of array of type?
by
jamie
[June 03, 2023, 04:42:22 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How find Total Space (Read 336 times)
dimonershov
Newbie
Posts: 5
How find Total Space
«
on:
March 05, 2023, 11:46:12 am »
Hi
How to find out the size of the internal memory in bytes?
I programming app on Android in LAMV.
In Windows i write:
Windows.GetDiskFreeSpaceEx(Pchar(usb_name_37+':\'),FreeBytesAvailableToCaller,Totalsize,@FreeSize);
«
Last Edit: March 05, 2023, 11:53:22 am by dimonershov
»
Logged
higgins
New member
Posts: 6
Re: How find Total Space
«
Reply #1 on:
March 08, 2023, 03:17:18 pm »
Hi,
This thread may help you. It concerns Delphi but includes several links
https://stackoverflow.com/questions/50552808/delphi-tokyo-android-how-do-i-get-the-free-available-disk-space
Logged
Thaddy
Hero Member
Posts: 12974
Re: How find Total Space
«
Reply #2 on:
March 08, 2023, 03:56:56 pm »
The most reliable way is to call GetHeapStatus, which is always available.
https://www.freepascal.org/docs-html/rtl/system/getheapstatus.html
Logged
I actually get compliments for being rude... (well, Dutch, but that is the same)
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
How find Total Space
TinyPortal
© 2005-2018