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();
希望能帮助到你。