Android / Amazon Fire How to save a screenshot in the Downloads folder

Hey there, quick question. I have been reading up on the whole game maker sandboxed situation, because my project requires saving a file in the Download or another accessible directory. I can not use the default working_directory, because its unaccesible to the user without root.

Any ideas would be welcome and thanks in advance!
 
Can I ask for an example if it isn't too much please. I'm still very much a noob at saving files. Also it says "Valid for Windows and Mac only"
 

rIKmAN

Member
Can I ask for an example if it isn't too much please. I'm still very much a noob at saving files. Also it says "Valid for Windows and Mac only"
There is a code example at the bottom of the link I posted that saves a screenshots to the selected folder.

You didn't mention in your post that you were targeting any other platforms, and you mentioned the "Download" folder so I assumed you were targeting desktop.
 
There is a code example at the bottom of the link I posted saves a screenshots to the selected folder.

You didn't mention in your post that you were targeting any other platforms, and you mentioned the "Download" folder so I assumed you were targeting desktop.
I'm Sorry, I added the Android tag and then just forgot to mention it again. I found an extension called folderpick or something along those lines which Seams to work, so I'll try it tomorrow. But thank you anyways, that will come in handy in the future!
 
Last edited:

rIKmAN

Member
I'm

Sorry, I added the Android tag and then just forgot to mention it again. I found an extension called folderpick or something along those lines which Seams to work, so I'll try it tomorrow. But thank you anyways, that will come in handy in the future!
Ahh no problem - yeah I believe you will need an extension to break out of the sandbox, not too sure of the specifics on Android or whether that may be a rejection on the Store - so do your homework to save any headaches down the road just in case.
 

TibiSoft

Member
Hello All,
Was it somehow solved? I am looking for the solution for the same issue: to save a file (screenshoot) on Android what expected to be reached by user from any other App later on.
Thanks.
 
Hello All,
Was it somehow solved? I am looking for the solution for the same issue: to save a file (screenshoot) on Android what expected to be reached by user from any other App later on.
Thanks.
It's certainly been a while since then, but I'll try my best.
First I purchased this extension here:
https://marketplace.yoyogames.com/assets/4257/folderpick
(Not sponsored or anything)

And used one of its functions to create a path to the download folder by saying path = *one of the extensions functions* (You'll need to look at the documentation for the extension for this one). Then I saved the surface/the asset by using for example surface_save(path + "/filename.png")

Hope this helps you
 

TibiSoft

Member
Thanks for your prompt reply.
"Accidentaly" today I have already bought it, and just realized afterwards that it is for GMS1. ...Tried once to compie with GMS2 however resulted many errors and I've just given up with that.
Do you use it with GMS1 or 2?
 
Thanks for your prompt reply.
"Accidentaly" today I have already bought it, and just realized afterwards that it is for GMS1. ...Tried once to compie with GMS2 however resulted many errors and I've just given up with that.
Do you use it with GMS1 or 2?
I still use GMS1 and for development and not even the latest version as it introduced issues for Android development.
I don't know how those extensions work for GMS2 but maybe you can click contact developer on the extension store and ask them if they can give you a hint, even tho the extension might no longer be supported by them.
Also maybe try implementing the extension in an empty project first (1 room, 1 object, 1 sprite and the extension) and compile it with Android YYC.

Good luck, sorry if I wasn't of much help.
 

TibiSoft

Member
try implementing the extension in an empty project first (1 room, 1 object, 1 sprite and the extension) and compile it with Android YYC.
I have tried unfortunately without success.
Anyway, I do appreciate your support. I try to contact to developers of this extension and/or look for some other solution (other extension?).
 
Top