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
howto set onmousemove han...
by
Fibonacci
[
Today
at 02:08:52 pm]
unit not found (StdCtrls)
by
cdbc
[
Today
at 02:03:43 pm]
VAR RECORD doesn't work?
by
TRon
[
Today
at 12:30:21 pm]
[SOLVED] console app wind...
by
senglit
[
Today
at 12:21:57 pm]
Lazarus and XML
by
Bart
[
Today
at 09:38:45 am]
drop picture from browser
by
Handoko
[
Today
at 07:50:10 am]
Searchkey Tdbf
by
Handoko
[
Today
at 05:56:02 am]
LAMW - (SOLVED) upload fi...
by
Mongkey
[
Today
at 05:20:23 am]
Encapsulating existing fu...
by
TRon
[
Today
at 05:16:22 am]
FPImageException while l...
by
TRon
[
Today
at 03:10:14 am]
Make visual components no...
by
sstvmaster
[September 30, 2023, 11:37:48 pm]
Scrolling TStringGrid
by
jamie
[September 30, 2023, 11:01:01 pm]
Large system, i2C to go w...
by
ccrause
[September 30, 2023, 08:52:34 pm]
[ solved ] drawn lines no...
by
Jumbo
[September 30, 2023, 12:00:30 pm]
ZenGL Update +android + M...
by
Seenkao
[September 30, 2023, 12:16:22 am]
Notarization under macOS ...
by
TRon
[September 29, 2023, 11:10:27 pm]
Image not shown after use...
by
Jumbo
[September 29, 2023, 10:14:11 pm]
Saving a Form state (rela...
by
Curt Carpenter
[September 29, 2023, 07:46:53 pm]
Poor optimization of cons...
by
440bx
[September 29, 2023, 06:55:50 pm]
Accessing JSON data from ...
by
magleft
[September 29, 2023, 02:22:30 pm]
Operator not Overloaded E...
by
cdbc
[September 29, 2023, 01:15:28 pm]
Can't hide main window
by
zeljko
[September 29, 2023, 08:16:40 am]
“case (a,b) of...” doesn’...
by
440bx
[September 29, 2023, 08:02:32 am]
sslsockets, TSSLSocketHan...
by
r.lukasiak
[September 29, 2023, 07:55:25 am]
Cross platform DirectoryW...
by
r.lukasiak
[September 29, 2023, 07:44:18 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How find Total Space (Read 409 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: 13213
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