How to know internal memory size in android?

前端 未结 1 968
一向
一向 2021-02-09 04:11

This is my code,

private String memSize(String path){
    StatFs stat = new StatFs(path);
    long blockSize = stat.getBlockSize();
    long availableBlocks = st         


        
相关标签:
1条回答
  • 2021-02-09 04:57

    Your internal storage is not mounted in / it's in /data dir. android internal phone storage

    0 讨论(0)
提交回复
热议问题