'Android open a srt file to read it

I have .srt files on my android device.

But I don't have any program that allows me to be able to open it to be able to see what the contents of them are.

So I would like to create a simple program that allows me to be able to open the file as if it were a .txt in order to be able to read it.

The problem is how do I specify that that type of .srt extension can be opened by that program.

There is something in the android manifest that allows me to do this.

What I want to do is this:

  1. I have my .srt files in my archive
  2. When I click on one of these files, it must open the program to be able to read it with the file open


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source