Document Center
 
All Products
Search
  • Document Center
  • Object Storage Service
  • SDK Code Samples
  • Android
  • Preface

This Product

  • This Product
  • All Products

    Object Storage Service:Preface

    Document Center

    Object Storage Service:Preface

    Last Updated:May 19, 2022

    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
    • Create buckets, Query bucket ACLs, Query bucket information, Delete buckets, and List buckets
    • Manage lifecycle rules, Hotlink protection, and Access logging
    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)

    How helpful was this page?

    $!csrfToken.hiddenField

    What might be the problems?

      More suggestions?

      Thank you! We've received your feedback.