This question applies to any file created by an app, but this is the description of my problem.

I have an app installed in my phone that creates a .nomedia file in the root of my storage every time a specific action happens in the app. This causes all media files on my phone not to appear in gallery applications because the media scanner ignores everything.

I have contacted the app but they still did not have managed to solve that problem. What I want to know then is if there is a way to immediately delete the .nomedia file as soon as it is created by the app.

  • Remove that app, simply – esQmo_ Jun 1 '18 at 17:17
  • That does not provide an answer to my question. – joaopaulo.ps93 Jun 1 '18 at 17:22
  • that's probably why I choosed to comment instead ;) – esQmo_ Jun 1 '18 at 17:23
  • I need to use the app, so deleting it is not possible. – joaopaulo.ps93 Jun 1 '18 at 17:25
  • This should be a bug or something with your app. an App shouldn't create a .nomedia file inside system media folders. May be it is not configured properly to use its own folder – esQmo_ Jun 1 '18 at 17:28

Monitoring a directory for a newly created or modified file is a simple task for an app as Android provides an API for doing so.

Therefore a lot of apps include file monitoring capabilities, such as Automate or Tasker. In these apps you can monitor the file as add a trigger to delete the file that will be executed immediately when the file is created.

Your Answer

