I am trying to retrieve file listing from my (apache) http server via an android phone. Searched the web and forum without success. I was however able to do this in standard
ApacheURLLister
is a pretty simple class with no special dependencies. You should have no problems copying it and use it directly in your code: https://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/ApacheURLLister.java
For Android Studio you can add Ivy on build.gradle file
compile group: 'org.apache.ivy', name: 'ivy', version: '2.3.0'