How to hide system images from android firemonkey gallery applications?

1

I need the images used in the system not to appear in the android gallery application, because they are images used only by the system and when viewing them some clients delete them.

    
asked by anonymous 19.09.2018 / 16:34

1 answer

1

To hide the images from your system, just create a new file in the folder where you put your images, named:

  

.nomedia

I found the answer here

after that the images will no longer appear in the gallery application.

It's like this in practice

procedure botao_qualquer;
var
  a: TStringList;
  pasta: string;
begin

  pasta:= "caminho da pasta onde estão os arquivos";

  a:= TStringList.Create;
  a.SaveToFile(pasta+'.nomedia');
  a.Free;

end;
    
20.09.2018 / 19:49