Android: Nextcloud App - Cannot change custom folder paths.

Created on 21 Aug 2018  路  10Comments  路  Source: nextcloud/android

Actual behaviour

  • Cannot apply the folders path at Local and Remote folder.

Expected behaviour

  • Auto upload. Set up a custom folder

Steps to reproduce

  1. Menu - Auto upload - Set up a custom folder
  2. Local folder (choose local folder)
  3. /storage/emulated/0/CallRecordings
  4. Tap choose button

Nothing happen (choose local folder again)
At Remote folder same issue.

Environment data

Android version:
4.4.2

Device model:
Samsung S5 Duos

Nextcloud app version:
3.2.3

Nextcloud server version:
13.0

Logs

No errors.

Web server error log

No errors.

approved bug help wanted needs infdiscussion

All 10 comments

GitMate.io thinks possibly related issues are https://github.com/nextcloud/android/issues/537 (Cannot change storage path from default to external.), https://github.com/nextcloud/android/issues/163 (Changing back to "all files" should go to latest folder), https://github.com/nextcloud/android/issues/2195 (storage path), https://github.com/nextcloud/android/issues/2855 (can't change storage path with mine.), and https://github.com/nextcloud/android/issues/1741 (Change default auto upload remote folder).

@nextcloud/android I can reproduce this and checked the layout code. The click listener sits on the linear layout so it should work and sometimes it does while sometimes the click isn't detected, don't know why or if it is related to any background threads (while it shouldn't). So this seem to happen while I don't know why :(

@AndyScherzinger
Thanks for your reply!

When sync a folder manually, after tap on sync menu(at Camera folder, "3 dots" menu), an another folder created with same albumname but different path. Then two "Camera album" appeared in phone. Is it same issue or an other one?
Maybe the problem is in the settings-storage path? I don't know.

Sync:
screenshot_2018-08-22-13-32-47
Original:
screenshot_2018-08-22-13-36-52

@zslukacsik that is another issue since the first screenshot shows an Nextcloud internal path which should be auto-hidden from the list of available folders. Can you please create a new issue for that one? :)

@AndyScherzinger Of course. Thanks!

https://github.com/nextcloud/android/issues/2910

Thanks a lot @zslukacsik - This is highly appreciated :+1:

I experienced the same problem described in the original post when trying to add custom paths to Auto Upload folders on my Android phone. It worked once after first installation, but on subsequent attempts at a later time, both versions of the dialogue ("Preferences for auto uploading" and "Create new custom folder setup") failed to show the local or remote folder paths after confirming with the "Choose" button.

Uninstalling and reinstalling the app did not solve the problem. Upon further investigation, I realised I had switched on Android's Developer Options at some point after installing the app for the first time, when trying to solve a USB to PC connection problem.

I turned off the Developer Options in Android's settings and tried to setup the Auto Upload feature again, and this time _both dialogues worked as expected_, allowing me to select the custom folder paths.

Environment data

Android version:
6.0

Device model:
LG G3 (LG-D855)

Nextcloud app version:
3.3.0

Nextcloud server version:
14.0.1 (running on Ubuntu Server 18.04 LTS)

@ndehav01
Heureka! 馃挕
There is no error with developer option. But when in the "developer option" - "Do not keep activities" - is active -> the app forget the path, because we set to do clear every "activities" (like forget the paths) when we leave a "window". 馃槃
So, maybe it's not a bug, it's an user error!
Tested, worked for me! THX!

@zslukacsik Ah, thank you for explaining that. It explains why when I turned Developer Options back on, the Auto Upload feature continued to work and didn't break again!

In my opinion we do not have to fix if someone has "don't keep activities" enabled, as this is only a dev option to test long suspended apps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Tie-fighter picture Tie-fighter  路  3Comments

JSoko picture JSoko  路  3Comments

tobiasKaminsky picture tobiasKaminsky  路  3Comments

AndyScherzinger picture AndyScherzinger  路  3Comments

ikke-t picture ikke-t  路  3Comments