We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All
MaterialsConsole
AppGallery Connect ExamplesAuth ServiceAndroid

Android

The Android Studio project contains the Java and Kotlin sample code for using Auth Service.

Expand

Sample Code

Find It on Gitee

Find It on GitHub

Java and Kotlin

Click here

Click here

NOTE

If you need to run the sample code directly, pay attention to the following points:

  1. Download the agconnect-services.json file of your app, and copy the file to your app's module directory of the demo project.
  2. Change the value of applicationid in the app-level build.gradle file in the demo project to your app package name.

For details, please refer to the README file of the demo project.

Search
Enter a keyword.