Reputation: 1170
I'm trying to simply get the filename of a file from an online directory. The directory only has one file in it. The filename is actually the version number. If the filename is "newer" than the file that I already have stored on the android, it will download the file and replace it. I already know how to download the file. I'm not sure if android has some sort of built-in directory lister or if I need to create a PHP file that will display the files, then somehow open and read that in and use that as my path. Any help would be greatly appreciated.
Upvotes: 0
Views: 500
Reputation: 10948
You'll want to write that PHP script to return the file name. With that, you can do a straight download from the server.
Upvotes: 2