Help With Save File

So I am saving image files. I was wondering... How can I get my app to make it's own folder when it first starts saving image files... I'm assuming that I just have to specify a path... But I'm wondering if that path is something like /mnt/etc/etc.

https://puravidaapps.com/file.php

check this link i think you got your answer.

thank you

Try this:

grafik

This extension uses the relative path (for external storage):

relative path: /myImages/
absolute path: /storage/emulates/0/myImages/

2 Likes

So Anke, how do I import the extension?

Does it have to be the .aix? Or the .aia?

Extensions are aix files while projects are AIA files.

1 Like

Thank you.

Does all this look right? I'm trying to incorporate the creation of a directory for my save files to go into.

1 Like

what about testing this yourself?

btw. if you are using the canvas, you do not have to first create a directory, the Canvas.SaveAs method is able to create the directory in case it does not exist it will be created automatically, see also https://puravidaapps.com/snippets.php#2dir

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

Ok thank you.

I am actually trying to get the pictures to show up in my gallery. They don't unless I restart the phone... Is this just because it is the companion saving the files and making the directory or will this happen once I build it and install it?

you might want to use the GalleryRefresh method from the tools extension
https://puravidaapps.com/tools.php
Taifun

See also here:

Grazie, Ma in appinventor sembra non funzionare, non viene caricato

how is this related to this thread?
please elaborate, see also

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.