Screenshot save path

Hello.
I added a screenshot button in my app and I found out screenshot image is saved in inner memory folder not in specific folder. It’s too hard to find.

How to make my own app folder for screenshot saving and make screenshot image name with my app name + add number? (myscreen1.png, myscreen2.png…)

Thank you.

Checkout File extension by @Taifun. It has CreateApplicationSpecificDirectory method in it.

1 Like

Hi,

some hints about file saving:

  • Prefix the filename with / (i.e. relative path) to look for the file on the SD card.
    For instance /myFile.txt will look for the file /mnt/sdcard/myFile.txt.
  • To read assets packaged with an application (also works for the Companion)
    start the filename with // (two slashes).
  • If a fileOrDirectoryName starts with file:/// you can specify a complete path to the file of directory.
    Taifun Extention link: App Inventor Extensions: File | Pura Vida Apps

About numbering files:
Try this

  1. Set var BaseFilename according to above hints.
  2. There is a var counter which increases by 1 as you take screenshots. Files are saved with postfix 1, 2, 3…
    Next time you start your app, numbering will be repeated 1,2,3…
    If you want to avoid this, on exiting save counter to a db. Read it OnScreen.Initialize.