0

I'm wondering if it's possible in the Android SDK to find the X amount of room for pictures or the Y amount of time for filming left. In the next link, for example, 1674 pictures can still be taken. Is that manually calculated by the amount of disk space left and the size of a picture maybe? I've tried looking for solutions on this site and furthermore on google, but couldn't find anything about it...

https://i.stack.imgur.com/Sp4MD.png

Thanks!

2 Answers2

1

You can find free space amount like this: How to find the amount of free storage (disk space) left on Android?

But you still need to determine a picture size (or size of a 5-second video clip) experimentally.

There is no way to know picture size before compression.

Community
  • 1
  • 1
constpetrov
  • 126
  • 5
0

I'd first check the available space on the SD card and then play around with it based on the quality of the picture taken or the video filmed.

By assigning a storage value to a picture quality - size you can calculate the amount of pictures you can still take with a simple division. Same goes for videos, but considering MB/sec.

You'll have to define those values tough, maybe by using the average size of a small group of pics.

Community
  • 1
  • 1
Fritz
  • 9,987
  • 4
  • 30
  • 49