unsupported file warning
This commit is contained in:
parent
9c51283f2b
commit
fb13bfe897
2 changed files with 4 additions and 2 deletions
|
@ -181,12 +181,13 @@ public class ObjectSelect extends AppCompatActivity {
|
||||||
if (Img.get(position).equals(R.drawable.folder)) {
|
if (Img.get(position).equals(R.drawable.folder)) {
|
||||||
//go to subfolder
|
//go to subfolder
|
||||||
explorer(Name.get(position).toString());
|
explorer(Name.get(position).toString());
|
||||||
}
|
} else if (Img.get(position).equals(R.drawable.audiofile) || Img.get(position).equals(R.drawable.videofile)) {
|
||||||
else {
|
|
||||||
//load media file
|
//load media file
|
||||||
GeneratePresignedUrlRequest request = new GeneratePresignedUrlRequest(bucket, prefix + Name.get(position).toString());
|
GeneratePresignedUrlRequest request = new GeneratePresignedUrlRequest(bucket, prefix + Name.get(position).toString());
|
||||||
URL objectURL = s3client.generatePresignedUrl(request);
|
URL objectURL = s3client.generatePresignedUrl(request);
|
||||||
videoplayer(objectURL.toString());
|
videoplayer(objectURL.toString());
|
||||||
|
} else {
|
||||||
|
Toast.makeText(ObjectSelect.this, getResources().getString(R.string.unsupported_file), Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
<string name="nosslwarning">Connections without SSL are not allowed</string>
|
<string name="nosslwarning">Connections without SSL are not allowed</string>
|
||||||
<string name="invalid_url">Endpoint URL must start with https://</string>
|
<string name="invalid_url">Endpoint URL must start with https://</string>
|
||||||
<string name="explorer_test_button">File Explorer Test</string>
|
<string name="explorer_test_button">File Explorer Test</string>
|
||||||
|
<string name="unsupported_file">Unsupported media file</string>
|
||||||
<string name="video_test_button">Video Test</string>
|
<string name="video_test_button">Video Test</string>
|
||||||
<string name="media_conn_fail">Cannot retrieve media file</string>
|
<string name="media_conn_fail">Cannot retrieve media file</string>
|
||||||
<string name="media_wrong_type">Invalid media file</string>
|
<string name="media_wrong_type">Invalid media file</string>
|
||||||
|
|
Loading…
Reference in a new issue