Hello! I would like to store only .txt filenames from a specific dir (let's say: /sdcard/docs/) into an String array.
Example: In /sdcard/docs/ there are 5 files: 'foo.txt', 'bar.jpg', 'foofoo.txt', 'loool.png' and 'foobar.txt'. I would like to get array with contents: "foo.txt", "foofoo.txt", "foobar.txt"
How could I do it? Thanks =)