Android: Nextcloud isn't listed in android "open from" file selection dialog

Created on 19 Feb 2018  路  19Comments  路  Source: nextcloud/android

The left image shows the correct behaviour on my friends phone,
the right image shows the incorrect bahaviour on my phone.
Both use the same android and nextcloud version and the hardware is identical as well.

Actual behaviour

  • On the right image the nextcloud entry is missing.

Expected behaviour

  • There should be a nextcloud entry on for file selection like on the left image.

Environment data

Android version: 7.1.1

Device model: Motorola Z Play

Stock or customized system: Stock

Nextcloud app version: 3.0.1

bug stale

Most helpful comment

I did a few tests with a fresh emulator (Android 7.0)

  • first no provider was shown
  • restarted a few times, still no provider
  • download a file
  • restarted again a few times
  • then out of sudden a provider was shown

I still have no clue, why and when a provider is shown...

All 19 comments

@tobiasKaminsky @mathiasconradt see this issue, there seems indeed to be some issue with the document provider lately :/

Yep, same as https://github.com/nextcloud/android/issues/2182

For me Nextcloud as file picker option...

  • does NOT appear on Huawei Mate 8, Android 7.0, EMUI 5.0.1, Nextcloud app 3.0.1
  • does appear on Nexus 4, Carbon CR 5.1, Nextcloud app 2.0.1
  • does appear on Nexus 9 tablet, Android 7.1.1, Nextcloud app 3.0.1

I want to add that Huawei Y6 2017 also wont work 馃棥
EMUI 4.1
Model: MYA-L41
Build: Maya-L41C432B140
Android 6.0

Only tested with 3.0.1 with not downloaded content. (Trying to get files from another app)

Maybe there is some different behaviour on different Android systems (i.e. Huawei / EMUI), they way providers or intents are handled. Dropbox and Google Drive apps seem to behave pretty stable on all devices though in this regard. For reference I attach the manifests of both here as well, maybe something can be found in there in comparison.

GoogleDrive_AndroidManifest.xml.txt
Dropbox_AndroidManifest.xml.txt

@mathiasconradt @xXSTrikeXx on the devices where Nc is showing up do you have any files downloaded via Nc and do the other installation don't have any files downloaded? Just asking since there are comments which might suggest it is only showing downloaded files. Just wanting to make sure this isn't the reason for the behavior.

I did a few tests with a fresh emulator (Android 7.0)

  • first no provider was shown
  • restarted a few times, still no provider
  • download a file
  • restarted again a few times
  • then out of sudden a provider was shown

I still have no clue, why and when a provider is shown...

@AndyScherzinger I have downloaded files within the NC app on my Huawei Mate 8, where NC is not showing up.

Once I had an nullpointer during document provider setup at:
getAppContext().getResources().getString(R.string.account_type) in MainApp.java

This then refuses the provider to work. But I am not sure, how to retrigger starting the provider...

What's causing the NPE there then? Missing app context, resource string? I guess an NPE shouldn't be thrown in the first place though, not?

I assume that getAppContext() is somehow null.
Maybe this is due to some race condition, whereas the app is not yet started (no context available), but something tries to start document provider.

But as said, I had this only once. On other tries there was no exception, but still no provider.

@AndyScherzinger
To clarify that I test now the right actual behavior:

  1. Add test account to android.
  2. Go to 'all files'
  3. Press + Icon and choose the second one 'content of other apps'
  4. Filemanager opens and for me now Nextcloud is now showing up with 2 Accounts. So its working for me.
    So the expected behavior is working, but I recognize that now no avatar is loading. For a few days I created a test account and the avatar "T" for user test was showing up correctly. Now after back adding the test account then there is no avatar shown. Thats crazy.....

@xXSTrikeXx Just tried the same on my Huawei Mate 8, created a new account. Still, NC doesn't show when the filepicker menu shows.
(Also noted some Avatar issues today. Avatar only shows of 1 of my 3 accounts).

Is there any progress on this issue? It's really annoying to share multiple files to e.g. whatsapp, since whatsapp does only recognise the first image if I try to share multiple images...

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

On my two phones (OnePlus 5T with latest LineageOS and Oneplus 6 with latest OxygenOS) and Nextcloud android 3.6.0, I am still seeing this issue.

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

.

On my phones, Nextcloud wasn't listed in android "open from" file selection dialog because I enabled the Nextcloud PIN access feature in the Android client. See tobiasKaminsky comment in this issue:
https://github.com/nextcloud/android/issues/2182#issuecomment-491226819

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JSoko picture JSoko  路  3Comments

rainer042 picture rainer042  路  3Comments

AndyScherzinger picture AndyScherzinger  路  3Comments

markbryanduncan picture markbryanduncan  路  3Comments

JSoko picture JSoko  路  3Comments