One Drive

43 views
Skip to first unread message

Michael markowitz

unread,
Aug 6, 2024, 3:14:11 PM8/6/24
to OpenSongApp
How do I assign my Microsoft One Drive folder to to the directory for Open Song?
thx

Mike

Gareth Evans

unread,
Aug 6, 2024, 3:33:09 PM8/6/24
to OpenSongApp
I don't use One drive, but I suspect that the method is similar to using DropBox and Google Drive.  These apps on Android do not fully synchronise files, but only let you access files remotely.  OpenSongApp is designed to work in offline mode and Android's storage method doesn't let you access remote storage folders and files on cloud services for full write permissions (when my app asks you to set your OpenSong/ folder the first time you ran it).  This avoids me insisting on users having Google, Dropbox, OneDrive accounts, etc. and internet access for usage.

I'd recommend the app OneSync (https://play.google.com/store/apps/details?id=com.ttxapps.onesyncv2&hl=en_GB) from the same author who's apps I use for DriveSync (and used to use for DropSync).  Follow the instructions on the synchronise storage page, but use the OneSync app instead of DriveSync.  I suspect the steps will be pretty much the same:

This app actually synchronises a remote folder (OneDrive) with a local folder on your Android device.  If your OneDrive folder already has an OpenSong/ folder (which contains the Sets and Songs folders amongst others), make sure you use the OpenSong/ root folder for the local and remote folders.  That way songs, sets, etc all get syncronised.

Make sure to make a backup of your files before you start.  Remember you should sync the entire OpenSong/ directory for your online folder and Android folder.


Hope that helps?

Gareth

Michael markowitz

unread,
Aug 7, 2024, 2:02:17 PM8/7/24
to OpenSongApp
One drive allows me to download the files onto the android device. I have downloaded the files I want to access. But when installing the app, when the app asked for a default directory, One Drive is not in the selection of the directory's listed.

thx

Mike

Gareth Evans

unread,
Aug 8, 2024, 6:37:22 AM8/8/24
to Michael markowitz, OpenSongApp
OneDrive will have its own private storage folder that it can use.  It may let you download files and select a location, in which case you could use the correct OpenSong/Songs or OpenSong/Sets folder that my app creates.  Normally cloud apps such as Google Drive, Dropbox download a cached file into their private folders.  Only their apps will be able to open these files.  If OneDrive allows you to specify where to download them, you need to put them into a folder that OpenSong app is using for its files - this is what my app asks you to do when you start it up.

OneDrive may allow apps to access individual files in it's private storage (this will be done by what is called a 'document provider'), but won't allow other apps to set directory access there (OpenSongApp sets a 'directory access' when you start the app - this gives the app permission to read/write/delete/create files in the folder without having to request permission each time).  Android will not let you do that in another app's private folder or document provider location.  You cannot directly use Google Drive / Dropbox / OneDrive folders in other apps.  Their own apps 'cache' the files in their own private storage location that you cannot view (unless you have rooted your device).  This is usually in the /data/data/ folder on the system drive.  You won't have permission to view these.  Apps can access their own files located in there, but only their own.  OpenSongApp uses its private storage folder /data/data/com.garethevans.church.utilities.opensongtablet/ to store a working database, etc, but I chose to keep files in a public OpenSong/ folder that you choose on start up.  This means that other apps, including synchronising apps, can access your files from this location if you choose to let them.

OpenSongApp will not be able to create its root folder in any online or cloud storage locations unless that online storage location has settings to allow this in Android.  Currently I don't think any cloud storage providers do this.

If there are only a few song files, you will be able to Import files individually using OpenSongApp's Settings > Song actions > Import > File.  The file picker (which only looks for files) should show your OneDrive folder and you will be able to pick individual files that way.
You might be able to use a file manager to manually copy files from your OneDrive folder into your OpenSong folder.

To clarify the steps if your files on OneDrive are valid OpenSong files (songs, sets, etc.)
  • Start OpenSongApp
  • Select a public storage location to save all of your OpenSong songs and sets.  Most users will place this in the root folder of the device.  You will likely see a message like my screenshot saying you can't use this folder, but you can create a new folder called OpenSong in this location.  Start the app up once you have set your folder.  Do not try to find any OneDrive folders - you won't be able to.
  • Now from OneDrive (if you want to manually do this), download your files to the correct location in your OpenSong/Songs or OpenSong/Sets folders.
  • Restart OpenSongApp and allow it to run a full index.  The songs or sets you copied will be added to the app database for use.  If the files are not correct OpenSong files (e.g. text, onsong, chordpro, word), they will not work using this method, instead they need to be imported using OpenSongApp Settings > Song actions > Import > File
rootfolde.png

--
When responding to a post on the forum using your email, please make sure to click on the 'Reply all' button so that your response is also sent to the forum for other people to see the full conversation.
---
You received this message because you are subscribed to the Google Groups "OpenSongApp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensongapp...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/opensongapp/962df530-68d5-4251-8a59-50c967def8bbn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages