开发者

J2ME : How to get SDCard's available Free Space

I am building J2ME application, where I want to get size of avail开发者_如何学Goable free space on SDCard and on Phone internal storage.


FileConnection fc = (FileConnection) Connector.open("file:///SDCard/");

long total = fc.totalSize();

long used = fc.usedSize();

long free = total - used;   
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜