Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / OpenRawFolder and OpenToWrite

Author
Message
EricS2
1
Years of Service
User Offline
Joined: 17th May 2017
Location:
Posted: 31st Jul 2018 19:06
Hi,
I want to write a file and transfer it to my pc.

But i cant find any file in any folder.
I already coded:









Any solution to transfer data to my pc?
Bengismo
1
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 3rd Aug 2018 16:18 Edited at: 3rd Aug 2018 16:18
For you to open a file outside of the write directory on android you should specify a full path....so

OpenToWrite(1,"raw:/storage/sdcard0/test/agk.txt") or OpenToWrite(1,"raw:/sdcard/test/MyFile.txt")

Also
OpenRawFolder() isnt doing anything at all in the scenario your using, that command is used to iterate through files in a folder, you were probably thinking of the SetRawWritePath() command which would set the path for writing files but that is now deprecated so best to just use full paths for future compatibility.
EricS2
1
Years of Service
User Offline
Joined: 17th May 2017
Location:
Posted: 5th Aug 2018 22:37 Edited at: 5th Aug 2018 22:42
Do not work. No results with Opentowrite(1,"raw:/storage/emulated/0/test/agk.txt") too
I cant find any file output.

Maybe its AppGameKit Player ?
Bengismo
1
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 5th Aug 2018 23:57
Works on mine fine

Have you requested permission to write external??
EricS2
1
Years of Service
User Offline
Joined: 17th May 2017
Location:
Posted: 6th Aug 2018 04:45 Edited at: 6th Aug 2018 04:49
im using basic tier 1. In configuration the AppGameKit Player its allowed to write storage, use gps, and camera.
i think its impossible to get any data of the app without root.

the function :

function MakeTXT()
OpenToWrite(1,"raw:/sdcard/test/agk.txt")
CloseFile(1)
endfunction

or any path like:
OpenToWrite(1,"raw:/sdcard0/test/MyFile.txt")
OpenToWrite(1,"raw:/storage/emulated/0/test/MyFile.txt")
OpenToWrite(1,"raw:/mnt/sdcard0/agk.txt")
OpenToWrite(1,"raw:/mnt/sdcard0/agk.txt")

Login to post a reply

Server time is: 2018-12-11 14:12:37
Your offset time is: 2018-12-11 14:12:37