How to hide system images, from android firemonkey gallery apps?

Asked

Viewed 56 times

1

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

1 answer

1


To hide images from your system, just create a new file in the folder where you placed your images, with the name:

.nomedia

found the answer here

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

This is how it is 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;

Browser other questions tagged

You are not signed in. Login or sign up in order to post.