You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am studying Documents Providers and I have found something that I cannot understand, which also happens with the "StorageProvider" example of this repository.
It appears that all functions are called more than once when I open SAF.
2020-05-27 19:58:01.127 20322-20341/com.example.android.storageprovider V/MyCloudProvider: queryDocument
2020-05-27 19:58:01.273 20322-20362/com.example.android.storageprovider V/MyCloudProvider: openDocument, mode: r
2020-05-27 19:58:01.306 20322-20362/com.example.android.storageprovider V/MyCloudProvider: openDocument, mode: r
2020-05-27 19:58:01.344 20322-20362/com.example.android.storageprovider V/MyCloudProvider: openDocument, mode: r
2020-05-27 19:58:01.345 20322-20341/com.example.android.storageprovider V/MyCloudProvider: openDocument, mode: r
2020-05-27 19:58:01.381 20322-20341/com.example.android.storageprovider V/MyCloudProvider: openDocument, mode: r
2020-05-27 19:58:01.775 20322-20341/com.example.android.storageprovider V/MyCloudProvider: queryDocument
2020-05-27 19:58:01.810 20322-20341/com.example.android.storageprovider V/MyCloudProvider: queryDocument
2020-05-27 19:58:01.843 20322-20341/com.example.android.storageprovider V/MyCloudProvider: openDocument, mode: r
2020-05-27 19:58:01.849 20322-20362/com.example.android.storageprovider V/MyCloudProvider: openDocument, mode: r
2020-05-27 19:58:01.854 20322-20341/com.example.android.storageprovider V/MyCloudProvider: openDocument, mode: r
2020-05-27 19:58:01.868 20322-20362/com.example.android.storageprovider V/MyCloudProvider: openDocument, mode: r
Is it normal for queryDocument() and openDocument () to be called so many times?
That way, if my document provider were to download a file over the network, wouldn't it be downloaded multiple times?
The text was updated successfully, but these errors were encountered:
I think these are absolutely cases that you need to be able to handle. Even if the SAF screen is changed to only query your providers once, there's nothing preventing apps from querying your provider multiple times.
I am studying Documents Providers and I have found something that I cannot understand, which also happens with the "StorageProvider" example of this repository.
It appears that all functions are called more than once when I open SAF.
I report the logcat:
When I first open SAF:
When I open a file (eg a photo with Google Foto):
Is it normal for queryDocument() and openDocument () to be called so many times?
That way, if my document provider were to download a file over the network, wouldn't it be downloaded multiple times?
The text was updated successfully, but these errors were encountered: