Добавьте этот бит кода к вашей функции:
File sdcard = Environment.getExternalStorageDirectory();
File file = new File(sdcard,"/LinkFile.txt");
// Assuming each link to be on a new line
StringBuilder text = new StringBuilder();
try {
BufferedReader br = new BufferedReader(new FileReader(file));
String line;
while ((line = br.readLine()) != null) {
text.append(line);
text.append('\n');
}
}
catch (IOException e) {
Toast.makeText(getApplicationContext(),"Error reading file!",Toast.LENGTH_LONG).show();
}
String [] mStrings=text.toString().split("\n");
Тебе должно быть хорошо идти.