Mercurial > 510Connectbot
comparison app/src/main/java/com/five_ten_sg/connectbot/HostListActivity.java @ 513:13a922d1fc5c
update docs
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 10 Feb 2023 17:16:47 -0700 |
parents | e1dd1fd46e18 |
children |
comparison
equal
deleted
inserted
replaced
512:e1dd1fd46e18 | 513:13a922d1fc5c |
---|---|
468 String con = "/510Connectbot.connections"; | 468 String con = "/510Connectbot.connections"; |
469 String external_dir = Environment.getExternalStorageDirectory().getAbsolutePath(); | 469 String external_dir = Environment.getExternalStorageDirectory().getAbsolutePath(); |
470 String accuspeech = "/AccuSpeech/VoiceProjects"; | 470 String accuspeech = "/AccuSpeech/VoiceProjects"; |
471 String download_dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath(); | 471 String download_dir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath(); |
472 BufferedReader reader = null; | 472 BufferedReader reader = null; |
473 String fn; | |
473 try { | 474 try { |
474 reader = new BufferedReader(new FileReader(external_dir + accuspeech + con)); | 475 fn = external_dir + accuspeech + con; |
476 reader = new BufferedReader(new FileReader(fn)); | |
475 } | 477 } |
476 catch (Exception e) { | 478 catch (Exception e) { |
477 reader = new BufferedReader(new FileReader(download_dir + con)); | 479 fn = download_dir + con; |
480 reader = new BufferedReader(new FileReader(fn)); | |
478 } | 481 } |
479 String line = null; | 482 String line = null; |
480 | 483 |
481 while ((line = reader.readLine()) != null) { | 484 while ((line = reader.readLine()) != null) { |
482 if (line.length() == 0) continue; // empty | 485 if (line.length() == 0) continue; // empty |