
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.
Android version: 7.1.1
Device model: Motorola Z Play
Stock or customized system: Stock
Nextcloud app version: 3.0.1
@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...
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)
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:
@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!
Most helpful comment
I did a few tests with a fresh emulator (Android 7.0)
I still have no clue, why and when a provider is shown...