I have a site that can generate questionnaires to my survey app in android.. all the questionnaires goes to a single folder. Is there a way to download all the questionnaires without knowing every single address of the questionnaires? I already know how to download a single file, but I want to download an entire folder/directory form a website using java

from private static String file_url = "http://umsurvey.comlu.com/admin/question/";

to OutputStream output = new FileOutputStream(Environment.getExternalStorageDirectory()+"/Question/");

有帮助吗?

解决方案

I don't think you can. but you can generate a text file from your php that every-time you generate a questionnaires the file name of the questionnaire will add to the text-file.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top