Answer the question
In order to leave comments, you need to log in
How to call method with ArrayList urls parameter?
Sorry for the elementarism, the question is: How to call a method with an ArrayList urls parameter?
Here is the method code:
void writeFile(ArrayList<String> urls) {
try {
// отрываем поток для записи
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(
openFileOutput(FILENAME, MODE_PRIVATE)));
// пишем данные
bw.write(String.valueOf(initData(urls)));
// закрываем поток
bw.close();
Log.d(LOG_TAG, "Файл записан");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question