External storage

131 views
Skip to first unread message

Thiemo Melhorn

unread,
Dec 4, 2025, 11:36:50 AM (10 days ago) Dec 4
to DroidScript
Hello everyone,

Can you please tell me how to create and/or save files on Android?
test.spk

Alan Hendry

unread,
Dec 5, 2025, 11:23:32 AM (9 days ago) Dec 5
to DroidScript
HI,
There's a section in the documentation
Top left icon, Native, Files
Regards, Alan H
Message has been deleted

Thiemo Melhorn

unread,
Dec 8, 2025, 5:25:55 AM (6 days ago) Dec 8
to DroidScript
Can you please do that for me? I don't know how to do it yet with the JSON file and the query.

Tom F

unread,
Dec 10, 2025, 4:49:14 AM (4 days ago) Dec 10
to DroidScript
I have a couple lines to look for a file and create it if needed:

    try {
        Config = JSON.parse(app.LoadText("Config"));
    } catch {
        app.SaveText("Config",'{"FC1Title":"Please Set","FC2Title":"Please Set","FC3Title":"Please Set","TextSize":"9"}')
        Config = JSON.parse(app.LoadText("Config"));
    }

Then to save updates, I update the JSON and save it as text:

        Config[Title] = result.split(': ')[1].replace('"','')
        app.SaveText("Config", JSON.stringify(Config))

Hope it helps.

Tom F
Reply all
Reply to author
Forward
0 new messages