Unless you do your own method that generate URLs and try them one by one (which I think is not affordable at all), I think this is not possible to do what you want (as you neither can do that in other environments).
---- EDIT ----
Here would be an example of the mechanism to test whether an URL exists or not.
int counter = 0;
boolean keep_loading = true;
while (keep_loading) {
  final URL url = new URL("http://domin.com/files/asmabanat/" + counter + ".jpg");
  HttpURLConnection huc = (HttpURLConnection) url.openConnection();
  int responseCode = huc.getResponseCode();
  if (resposeCode != 404) {
    // This would mean that the image exists
    // Here you have to do the Lazy Loading of that image
    // You may find a good example of Lazy Loading of images
    // at this URL: http://stackoverflow.com/questions/541966/how-do-i-do-a-lazy-load-of-images-in-listview
    ...
    counter++;
  }
  else {
    // This means the URL returned a 404 error, which means your last image
    // was the last that exists, so you just get out of the loop
    keep_loading = false;
  }
}