Microsoft Azure Storage Library for Android
Перейти к файлу
microsoft-github-policy-service[bot] 44996b986d
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-03-28 16:48:37 +00:00
gradle/wrapper Update build tools version 2017-05-28 10:23:28 -07:00
microsoft-azure-storage Passing delete snapshots option to DeleteIfExists 2017-10-10 15:21:43 -07:00
microsoft-azure-storage-samples Disclaimer on the use of account key 2017-12-21 15:45:16 -08:00
microsoft-azure-storage-test Fix proxy test 2017-10-11 10:55:01 -07:00
.gitignore Release 0.5.0 2015-04-02 16:40:22 -07:00
BreakingChanges.txt 2.0.0 Release 2017-10-10 12:30:48 -07:00
CONTRIBUTING.md Clean things up from merging in May16 changes 2017-01-19 14:53:47 -08:00
ChangeLog.txt Setting changelog date 2017-10-11 15:43:40 -07:00
LICENSE.txt release 0.1.0 2014-05-12 10:10:12 -07:00
README.md 2.0.0 Release 2017-10-10 12:30:48 -07:00
SECURITY.md Microsoft mandatory file 2023-01-24 17:26:54 +00:00
build.gradle Minor fixes 2017-07-13 13:37:22 -07:00
gradlew [Android] Android Studio Support 2016-08-23 12:01:26 -07:00
gradlew.bat [Android] Android Studio Support 2016-08-23 12:01:26 -07:00
settings.gradle [Android] Android Studio Support 2016-08-23 12:01:26 -07:00

README.md

Microsoft Azure Storage SDK for Android

This project provides a client library for Android that makes it easy to consume Microsoft Azure Storage services. For documentation please see the AndroidDocs.

If you are looking for the Azure Storage Java SDK, please visit https://github.com/Azure/azure-storage-java.

Features

  • Blob
    • Create/Read/Update/Delete containers
    • Create/Read/Update/Delete blobs
    • Advanced Blob Operations
  • Queue
    • Create/Delete Queues
    • Insert/Peek Queue Messages
    • Advanced Queue Operations
  • Table
    • Create/Read/Update/Delete tables
    • Create/Read/Update/Delete entities
    • Batch operations
    • Advanced Table Operations

Getting Started

Download

Option 1: Source Zip

To download a copy of the source code, click "Download ZIP" on the right side of the page or click here. Unzip and navigate to the microsoft-azure-storage folder.

Option 2: Source Via Git

To get the source code of the SDK via git just type:

git clone git://github.com/Azure/azure-storage-android.git
cd ./azure-storage-android/microsoft-azure-storage

Option 3: aar via Gradle

To get the binaries of this library as distributed by Microsoft, ready for use within your project, you can use Gradle.

First, add mavenCentral to your repositories by adding the following to your gradle build file:

repositories {
    mavenCentral()
}

Then, add a dependency by adding the following to your gradle build file:

dependencies {
    compile 'com.microsoft.azure.android:azure-storage-android:2.0.0@aar'
}

Option 4: aar via Maven

To get the binaries of this library as distributed by Microsoft, ready for use within your project, you can use Maven.

<dependency>
	<groupId>com.microsoft.azure.android</groupId>
	<artifactId>azure-storage-android</artifactId>
	<version>2.0.0</version>
	<type>aar</type>
</dependency>

Minimum Requirements and Setup

  • Jackson-Core is used for JSON parsing.
  • Android 4.0/15+
  • (Optional) Gradle or Maven

This library is currently tested to work on Android versions 4.0+. Compatibility with older versions is not guaranteed.

Usage

To use this SDK to call Microsoft Azure storage services, you need to first create an account.

Samples are provided in the microsoft-azure-storage-samples folder. The unit tests in microsoft-azure-storage-test can also be helpful.

Make sure the storage client library is added as a project dependency. From Android Studio, go to File -> Project Structure. Click on the module (either sample or test). If 'microsoft-azure-storage' is not listed as a dependy, click the '+' sign. Then click module dependency and select 'microsoft-azure-storage'.

If using Maven or Gradle, Jackson-Core should be automatically added to the build path. Otherwise, please download the jar and add it to your build path. Also, please make sure that the jar will be added to your project's apk. To do this in Android Studio, go to File -> Project Structure -> Modules. Click the Dependencies tab. Click the '+' sign and click 'File Dependency'. Navigate the .jar.

Code Samples

Runnable samples for blob, queue, and table may be found in the microsoft-azure-storage-samples directory. To run these samples, specify a connection string in the MainActivity class and add a dependency on the Android client library. For additional information on using the Android client library, the Java general documentation and Java How To guides for blobs, queues, tables may be helpful.

Need Help?

Be sure to check out the Azure Developer Forums on MSDN or the Developer Forums on Stack Overflow if you have trouble with the provided code.

Contribute Code or Provide Feedback

If you would like to become an active contributor to this project please follow the instructions provided in Azure Projects Contribution Guidelines.

If you encounter any bugs with the library please file an issue in the Issues section of the project.

Learn More