Goodwy / Gallery

GNU General Public License v3.0
13 stars 3 forks source link

Problem with directory detection on different devices #5

Open JamesPous opened 6 months ago

JamesPous commented 6 months ago

I am using your gallery app on android tv box (Android 11) and Samsung Tab S7 (Android 13). The android tv box works with a harddisc over usb 3.0 (OTG) and has ntfs file system. The Samsung Tab S7 has a micro sd card slot and work with a micro sd card 1 tb which is ExFat fomatted.

On both devices I have over 100 folders with pictures (max resolution 2560x1920 pixels - jpeg - filesize less than 1 MB).

Some of the folders does not get detected in your app, but in other gallery apps from Samsung or A+ gallery. All folder and picture names use alphabetic and numeric names (shorter than 50 chars).

I can not see a reason, why your app could not show a few folders on both system. On a samsung s10 smartphone with android 12 I do not get any problems with these folders and files.

First I though the media storage is incomplete, but I used an android app to scan und generate the media storage database.

Is there a file or folder limit for your gallery app?

I have more than 100 folders and more than 70.000 files on the devices.

Goodwy commented 6 months ago

Hi. There is no limit on the number of files. Is the problem only in the folder display or are the files inside also not visible if you look outside the folders? Maybe these files are hidden?

JamesPous commented 6 months ago

I did some further tests with your app and other fork apps (e.g. fossify gallery or simple gallery app).

I have 2 base directories, which contain different folders (up to 50 folders) with further subdirectories. I recognized, that special chars in directory names prevent the viewing of preview thumbnails of folders. A hash tag symbol # in directory name makes problems. So I removed the symbols in directory names and then the preview thumbnail of the folder is visible.

Although I renamed other symbols e.g. Test (1) , Test (2) to Test1 and Test2 I use the setting sort by pathname for folders. This algorithm is a little bit slow, if you use round bracket signs in file or directory names. That could be a reason, why the detection of new or changed folders need more time than I expected.

For performance testing I used the include and exclude folder function to remove android system folders. Furthermore I reduced the amount of folders to check, if your app can detect a smaller amount of folders. If you have a few folders only, the detection of new folder is good. After 100 folders the speed decrease and sometimes I takes unbelievable long to detect new folders.

Other apps e.g. A+ gallery is much faster. I may use the android media storage system to detect them. Maybe your app get faster, if it is compiled for a newer android version?