in tools/android-app/app/src/main/java/com/aws/iotfleetwise/MainActivity.java [264:280]
private boolean downloadCredentialsFromS3(String s3Link)
{
boolean res = false;
try {
Log.i("DownloadCredentials", "Trying to download from " + s3Link);
URL url = new URL(s3Link);
HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
try {
res = configureCredentials(urlConnection.getInputStream());
} finally {
urlConnection.disconnect();
}
} catch (IOException e) {
e.printStackTrace();
}
return res;
}