Integration with Android

This document explains how to integrate an Android app with microCMS using the microcms-android-sdk.
The SDK primarily utilizes features to access the microCMS GET API and supports fetching drafts as well.
microCMS is developed not only for Android but also for various languages and frameworks.
You can install the SDK by adding the dependency in your app/build.gradle file.
implementation 'io.microcms:android-sdk:2.0.0'Additionally, you will need internet connection permissions. Please add the following to your AndroidStudio.xml.
<uses-permission android:name="android.permission.INTERNET"/>
Here is an example of the initialization code.
import io.microcms.android.MicrocmsClient
val client = MicrocmsClient("<YOUR_SERVICE>", "<YOUR_API_KEY>")
// <YOUR_SERVICE> is the XXXX part of https://XXXX.microcms.ioContents
- None