michelesalvador / FamilyGem

Android app for genealogical trees
https://www.familygem.app
GNU General Public License v3.0
125 stars 34 forks source link

PDF-Medias can´t be found in media folder #125

Open WeT-Klb opened 9 months ago

WeT-Klb commented 9 months ago

Hi, I use FamilyGem on different devices. One of them (my wifw´s tablet) is a Honor V8 Pro using chinese language. The weired thing: Only on this device if I import a gedcom file and set the media folder all PDF-files are not known. The pictures instead work perfectly. When I try to open a pdf-file something like a file explorer is started and I need to define which pdf-file I want to use - even FamilyGem knows the name. It seems FamilyGem keeps staying in the defined media folder but can´t find the right pdf. Once i set the pdf it works until i renew the gedcom-file - then again all PDFs are not found again. Is it because of the Honor OS which seems a ittle bit different to the regular Android. I also can´t access the settings (tooth wheel) - but i can use the "hamburger menu". Thanks in advance Werner

michelesalvador commented 7 months ago

Yes, unfortunately this is the expected behavior. From Android 11 (API 30) in most shared storage folders, Family Gem can access only "multimedia" files (image, video, sound). Document files (PDF, TXT, DOC...) are not easily accessible.

The solution I propose you at the moment:

  1. Install latest release of Family Gem (version 1.0.1.1 or above)
  2. Upload your media files to the folder Android/media/app.familygem (or a sub-folder of your choice)
  3. In Media folders add this folder

PDFs also should be freely accessible from there.

WeT-Klb commented 7 months ago

I tried as you suggested and installed FamilyGem 1.0.1.1 and imported my GEDCOM file directly. Then I copied all the files to /Android/media/app.familygem/Mediendateien Stammbaum. When I started familygem there are one weired behaviour now:

Since FamilyGem 1.0.1 (or 1.0.1.1 now) on all my devices (Galaxy Note 8 with Android 9, Galaxy Tab A6 with Android 8.1 and my wife`s HONOR V8 Pro with the "so-called" Android all the pictures of the individuals are "rotating", if I have have two or more pictures per individual. Hard to desribe - it's like a rotating picture show. Every time i change some settings in FamilyGem i just will see a random picture for the individual's specific pictures. I would prefer to see the most important one which was set in GEDCOM file originally. Just like it was in FamilyGem 1.0 - there only the main picture was shown.

jer194 commented 7 months ago

I would prefer to see the most important one which was set in GEDCOM file originally. Just like it was in FamilyGem 1.0 - there only the main picture was shown.

Same for me --- see discussion in #104 ...

michelesalvador commented 7 months ago

@WeT-Klb So copying media files under /Android/media/app.familygem can you now correctly display PDFs?

As you may have guessed, the random media carousel is not related with this PDFs issue.

WeT-Klb commented 7 months ago

Yes - first I cloned my FamilGem 1.0.1 on my Galaxy Note 8 and installed it on the Honor tablet. But turned out under /Android/media/ there is nothing like app.Familygem. Then i downloaded V 1.0.1.1 on both devices - now i got the /Android/media/app.familygem on Honor tablet. So I created a subfolder like described before and copied all files there - and it worked perfectly. When I switched back from pdf view to FamilyGem i figured out that "problem" with the media carousel - even including those pdf-files. When checking my other devices (Android 8.1 and 9.0) i had the same behaviour there. So for now I am nearly satisfied with FamilyGem - only I don't like that carousel.

BTW - V1.0.1.1 still don't appear in Google Playstore for my "old" devices. On Honer tablet I don't have access to the playstore as it is a chinese device and so have a "own" OS. But manually installing works like a charme.