• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Android wheres working directory on android?

D

Dengar

Guest
im sure this is a common question but im stumped, im using the following code to create a txt file on android and it works, but how can I manualy look at the txt file without using gamemaker? and is there a different method I should be using so I can manualy open the txt file outside of gamemaker?

Code:
file = file_text_open_write(working_directory + "\hiscore.txt");
file_text_write_string(file, "test");
file_text_close(file);
 

Bingdom

Googledom
I think it's saving in a directory that only the app itself can access.

(I don't know the exact directory and I'm not sure if gm can do this) You'll need to save it where you see the downloads, dcim, Android folder.
 

zbox

Member
GMC Elder
its under:
(root)/data/data/com.company.appname/files/

You'll need root access.
 
Last edited:

zbox

Member
GMC Elder
Well... what do you mean? You asked for the file path to the save files directory on android?

It's just the android equivalent of C:\Users\XX\localappdata\xxyy etc. So all you have to do is have root and use a file explorer :)
 
Last edited:
Top