Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーがメディアを sdCard にダウンロードしているときに Android で使用可能なメモリを確認する方法
以下を使用して、メモリの状態を確認できます。
ActivityManager actMgr = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); ActivityManager.MemoryInfo minfo = new ActivityManager.MemoryInfo(); actMgr.getMemoryInfo(minfo); long mem = minfo.availMem;