I\'m able to get the height and width of an image. But is there a method to retrieve the size (in bytes or kb or mb) for an image stored in the phone?
This returns the true size that is match in computers when you see file details with right click.
File file = new File("/sdcard/my_video.mp4"); long length = file.length() / 1024; // Size in KB