android: save file

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
trabitboy
Prole
Posts: 14
Joined: Sun May 12, 2019 2:09 pm

android: save file

Post by trabitboy » Thu Sep 05, 2019 4:19 pm

hi,
I can't seem to save files on android with 11.1 .
application has "storage" permission.
I don't see any new folder created in /Android/data/ either?

here is my test:
love. file system. write('test.txt','test')

trabitboy
Prole
Posts: 14
Joined: Sun May 12, 2019 2:09 pm

Re: android: save file

Post by trabitboy » Thu Sep 05, 2019 4:36 pm

main.lua
to be put in 'lovegame'
(64 Bytes) Downloaded 51 times
example file

trabitboy
Prole
Posts: 14
Joined: Sun May 12, 2019 2:09 pm

Re: android: save file

Post by trabitboy » Fri Sep 06, 2019 11:30 am

re read the wiki correctly, this is the fix:

Code: Select all

function love.conf(t)
    t.externalstorage = true
end

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 18 guests