This topic is written based on Object Storage Service (OSS) SDK for Android V2.9.5.
Compatibility
OSS SDK for Android is backward compatible.
Source code
For more information about the source code of OSS SDK for Android, visit GitHub.
Sample code
OSS SDK for Android provides various sample code files for your reference or use.
The following table describes the sample code files provided by OSS SDK for Android.
Sample code file |
Content |
BaseTestCase.java |
Initialization |
OSSBucketTest.java |
|
OSSPutObjectTest.java |
Simple upload, Append upload, Upload callback, Delete multiple objects in a batch, and Progress bar |
MultipartUploadTest.java |
Multipart upload |
ResumableUploadTest.java |
Resumable upload |
OSSGetObjectTest.java |
Download objects |
ManageObjectTest.java |
Determine whether a specified object exists, Query the ACL of an object, Copy an object, List objects, Delete a single object, Set the Content-Type of an object, and Obtain the metadata of an object |
RestoreObjectTest.java |
Restore an archive object |
SymlinkTest.java |
Manage symbolic links |
CRC64Test.java |
Data security |
OSSAuthenticationTest.java |
Sign a URL and Authorized access |
ImagePersistTest.java |
Image Processing (IMG) |