Reputation:
I am making an app in which i have to get the size of amr file.Any help regarding this will be appreciated.Thanks.
Upvotes: 0
Views: 535
Reputation:
As if you have the path just put your path in given code and you will get the length of file in bytes.
File file=new File("/sdcard/"+path of the file whose size you want);
long length = file.length();
Hope it helps.
Upvotes: 0