![]() |
A list of installed applications. Getting free drive space.
Hello,
I have two little questions: 1) How can I get a list of installed applications in the Internet tablet device? Can those be found in a specific directory, or is there some other way? 2) Is there a way for getting information about how much free drive space is left in the system? I appreciate any help! |
Look under Tools->Application Manager
and Tools->Control Panel->Memory |
Sorry, I was a bit inaccurate. I meant that I'd need to get the application list and free memory from C code. I'm implementing an application that needs check those two parameters. Any ideas?
|
The applications are maintained using dpkg, either find a library which interfaces with /var/lib/dpkg, or parse it directly, or parse the output of dpkg -l.
As for free memory, standard df-type functionality will do it, statfs(2) probably being your best bet. HTH, Andrew |
Thank you for the reply!
I have tried statfs, but unfortunately it doesn't give the right values. If I compare the statfs's values to the values of Control panel -> Memory, they are quite different. |
Remember that JFFS2 on the internal flash is compressed, so you'll always be estimating anyway.
|
All times are GMT. The time now is 12:05. |
vBulletin® Version 3.8.8