new release
This commit is contained in:
parent
1e77a76065
commit
a9ea4337c1
3 changed files with 34 additions and 14 deletions
|
@ -10,6 +10,10 @@ Current feature list
|
||||||
* Webpage viewer (htm, html)
|
* Webpage viewer (htm, html)
|
||||||
* Multiple account support
|
* Multiple account support
|
||||||
* Open object in external web browser
|
* Open object in external web browser
|
||||||
|
* Create buckets
|
||||||
|
* Delete buckets
|
||||||
|
* Delete files
|
||||||
|
* Delete folders
|
||||||
|
|
||||||
Known supported providers
|
Known supported providers
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@ android {
|
||||||
applicationId "asgardius.page.s3manager"
|
applicationId "asgardius.page.s3manager"
|
||||||
minSdk 24
|
minSdk 24
|
||||||
targetSdk 32
|
targetSdk 32
|
||||||
versionCode 5
|
versionCode 6
|
||||||
versionName "0.1.3"
|
versionName "0.1.4"
|
||||||
setProperty("archivesBaseName", "s3-manager-$versionName")
|
setProperty("archivesBaseName", "s3-manager-$versionName")
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|
|
@ -210,24 +210,40 @@ public class ObjectSelect extends AppCompatActivity {
|
||||||
explorer(Name.get(position).toString());
|
explorer(Name.get(position).toString());
|
||||||
} else if (Img.get(position).equals(R.drawable.imagefile)) {
|
} else if (Img.get(position).equals(R.drawable.imagefile)) {
|
||||||
//load media file
|
//load media file
|
||||||
|
try {
|
||||||
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);
|
||||||
imageviewer(objectURL.toString());
|
imageviewer(objectURL.toString());
|
||||||
|
} catch (Exception e) {
|
||||||
|
Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
} else if (Img.get(position).equals(R.drawable.textfile)) {
|
} else if (Img.get(position).equals(R.drawable.textfile)) {
|
||||||
//load media file
|
//load media file
|
||||||
|
try {
|
||||||
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);
|
||||||
textviewer(objectURL.toString());
|
textviewer(objectURL.toString());
|
||||||
|
} catch (Exception e) {
|
||||||
|
Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
} else if (Img.get(position).equals(R.drawable.webpage)) {
|
} else if (Img.get(position).equals(R.drawable.webpage)) {
|
||||||
//load media file
|
//load media file
|
||||||
|
try {
|
||||||
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);
|
||||||
webbrowser(objectURL.toString());
|
webbrowser(objectURL.toString());
|
||||||
|
} catch (Exception e) {
|
||||||
|
Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
} else if (Img.get(position).equals(R.drawable.audiofile) || Img.get(position).equals(R.drawable.videofile)) {
|
} else if (Img.get(position).equals(R.drawable.audiofile) || Img.get(position).equals(R.drawable.videofile)) {
|
||||||
//load media file
|
//load media file
|
||||||
|
try {
|
||||||
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());
|
||||||
|
} catch (Exception e) {
|
||||||
|
Toast.makeText(getApplicationContext(),getResources().getString(R.string.media_list_fail), Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(ObjectSelect.this, getResources().getString(R.string.unsupported_file), Toast.LENGTH_SHORT).show();
|
Toast.makeText(ObjectSelect.this, getResources().getString(R.string.unsupported_file), Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue