Google Drive file upload and download

78 views
Skip to first unread message

Mauritz Zondagh

unread,
Apr 5, 2026, 10:59:15 AMApr 5
to DroidScript
Hi, I need some help with loading and saving a .txt file to Google Drive using DroidScript. It’s been a while since I last used DroidScript, so my skills are probably a bit rusty.
I have a data file that I’d like my app to automatically open when it starts, and then save again when the app closes. This would help me avoid having to implement a separate backup scheme.
Is it still possible for DroidScript to access and open a .txt file directly from Google Drive? I’ve only found a sample that sends an intent for saving to Google Drive, but I can’t seem to find any example for loading a file.
Could someone please provide an example or point me in the right direction?
Thanks!

Alan Hendry

unread,
Apr 5, 2026, 11:33:28 AMApr 5
to DroidScript
HI,
DS 2.51b_p2(16-Mar-2022)
Updated app.ChooseFile() to support GoogleDrive,OneDrive and DropBox
Or Google Drive (REST) API
Or look for an npm package
Regards, ah

Dave

unread,
Apr 8, 2026, 2:33:51 PMApr 8
to DroidScript
Try asking @Cemal or @Jumar in Discord, I seem to remember one of them created a plugin or example for Google Drive read/write

Jumar

unread,
Apr 9, 2026, 7:04:21 PMApr 9
to DroidScript
Hi. You need to use "googleapis" npm package so you better have a nodejs background server in you app.
Reply all
Reply to author
Forward
0 new messages