Configuring the Nextcloud client for Android

How-to guide

In this post, I summarize my opinionated best application settings and I describe the limitations and workarounds with the Nextcloud client for Android. I haven’t found a comprehensive guide online so I wrote this one. This post is written for friends and family members using our private Nextcloud service, but I hope it can also be useful for anyone using Nextcloud with an Android client device. I haven’t tested iOS but I think much of the following also applies to the Apple app.

Table of Contents

General information and upstream documentation

Configuring instant uploads

I like to instant upload everything from my phone: pictures, videos, downloaded files. See How I organize my home directory § ~/Inbox.

When you configure instant uploads for a directory, you have three choices for what to do with the local file (the copy on your phone):

  1. Original file will be…deleted.
  2. Original file will be…moved to the app folder (recommended).
  3. Original file will be…remain in place.

The best option is “moved to the app folder”. The file gets uploaded to Nextcloud, and it is still accessible locally in the gallery app, so you don’t need the Nextcloud app to view and share your pictures.

Another useful option is to let Nextcloud save images in <year>/<month> subfolders. This is useful if you don’t process and sort your pictures often. It will break down your pictures in smaller folders so that you don’t end up with one directory containing thousands of files.

See also How I organize my home directory § ~/Pictures for more information on how I organize my pictures.

Synchronizing files and directories

User manual: https://docs.nextcloud.com/server/latest/user_manual/en/pim/sync_android.html

To synchronize a directory from the Nextcloud server to your phone:

  1. Navigate to the parent directory you want in the Nextcloud app.
  2. Open the ‘⋮’ menu for the directory you want to synchronize.
  3. Select ‘Synchronize’ in the menu.
  4. A syncing icon will briefly appear on the file’s icon, and disappear when done.
  5. This is a one-time action. New files will not be continuously synchronized.

To download a remote file to your phone and make it accessible to other applications via the media gallery:

  1. Navigate to the file’s directory.
  2. Open the ‘⋮’ menu on the file you want to download.
  3. Select ‘Download’ from the menu.
  4. A green check mark will appear on the file’s icon.

    This marks the file as ‘available offline’.
  5. The icon will change to a red X if the file is out of sync with the server.

    You can synchronize it again to download the latest version from the server.

Right now, only one-way sync is supported. Files added, modified or deleted on the server are updated on the client device. But files added on the device are not updated on the server.

For example, when I cut a movie with the Android Gallery app, it creates a new file with a ‘_1’ suffix in the ‘Cell phone pictures’ directory. This file is visible in the phone’s gallery, but not in Nextcloud.

Research:

Workarounds:

  • I do all my video editing on my computer using Pitivi (Linux only). This way, I have more control over files created, and files are two-way synchronized with the Nextcloud desktop client.
  • Use another sync app like FolderSync, Synchronize Ultimate, or Autosync. I haven’t tested any of these yet. That guy says it’s not good for syncing large directories.

Accessing and sharing files from the Nextcloud app

  • You can see both downloaded and remote files.
  • You can’t share multiple files at the same time. If you want to create an Instagram post or story with multiple files, you must access the files via the phone’s gallery.
Click on the share icon to publish your picture on social media, or share it in a private message.
Click on the share icon to publish your picture on social media, or share it in a private message.

Accessing and sharing files from the phone’s media library

  • Local and downloaded Nextcloud files are directly accessible from the phone’s media gallery.
  • If you want to share multiple files in a single post, make sure they are locally accessible in the phone’s media gallery.
Selecting multiple pictures to create a post in Instagram.
Selecting multiple pictures to create a post in Instagram.

Sharing a Nextcloud remote file from any app

You can browse remote Nextcloud files from the media selector if you go to “Other…” and select the Nextcloud drive. This is slower, and you can’t select more than one file at a time.

The ‘Open from…’ dialog allows you to select a Nextcloud source. You will see thumbnail versions of your remote files.

In the Instagram app, you can select a different source to browse remote files.
In the Instagram app, you can select a different source to browse remote files.
Reaching the 'Open From...' dialog from the Instagram app. Remote files can be accessed, but only one file can be selected this way.
Reaching the ‘Open From…’ dialog from the Instagram app. Remote files can be accessed, but only one file can be selected this way.

Synchronizing contacts and calendar with DAVx⁵

User manual: https://docs.nextcloud.com/server/latest/user_manual/en/pim/sync_android.html

https://www.davx5.com/

  1. Download and install F-Droid.
  2. Install DAVx⁵ with F-Droid.
  3. Configure DAVx⁵ via the Nextcloud app.

Nextcloud files location on the phone

Files downloaded from Nextcloud, synchronized folders, and files “moved to app folder” in the instant upload settings go to this directory:
/Android/media/com.nextcloud.client

This is where you can find your files if you connect your phone via USB on your computer.
This is where you can find your files if you connect your phone via USB on your computer.

Connecting to more than one Nextcloud account

The Nextcloud client supports connections to multiple Nextcloud accounts on different servers. You can switch between accounts in the app by touching your avatar on the top right corner.

Solutions Architect

I teach people how to see the matrix metrics.
Monkeys and sunsets make me happy.

Related