android - Retrieve filename from a web folder -


i using asynctask download file web folder. however, name of file different every time.

is there way name of file in web folder? (there 1 file in folder @ given time).

http://www.example.com/myfolder/myfile_1

try apacheurllister (i didn't tested may work):

url url;     list serverdir = null;      try {         url = new url("http://www.abc.com/myfolder/");                    apacheurllister lister = new apacheurllister();                  serverdir = lister.listall(url);     }      catch (exception e) {         e.printstacktrace();         log.e("error on getting file","error " +e);     }     system.out.println(serverdir);     return serverdir;    

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -