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.
amrファイルのサイズを取得する必要があるアプリを作成しています。これに関するサポートをいただければ幸いです。ありがとうございます。
パスがあるかのように、指定されたコードにパスを入力するだけで、ファイルの長さがバイト単位で取得されます。
File file=new File("/sdcard/"+path of the file whose size you want); long length = file.length();
それが役に立てば幸い。