# agc-cloudfunction-codelab-java **Repository Path**: appgallery_connect/agc-cloudfunction-codelab-java ## Basic Information - **Project Name**: agc-cloudfunction-codelab-java - **Description**: Cloud Functions enables serverless computing. It provides the Function as a Service (FaaS) capabilities to simplify app development and O&M so your functions can be implemented more easily and your service capabilities can be built more quickly. - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-27 - **Last Updated**: 2021-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Cloud Function Demo ## Table of Contents * [Introduction](#introduction) * [Installation](#installation) * [Configuration ](#configuration ) * [Supported Environments](#supported-environments) * [Sample Code](#Sample-Code) * [License](#license) ## Introduction AppGallery Connect Cloud Function enables serverless computing. It provides the Function as a Service (FaaS) capabilities to simplify app development and O&M so your functions can be implemented more easily and your service capabilities can be built more quickly. This demo provides you a way to integrate cloud function into your Android apps. ## Installation Before using Cloud Function sample code, check whether the Android environment has been installed. Decompress the sample code package. Open the sample code as a project in Android Studio. ## Supported Environments Android Studio 3.0 or later. ## Configuration Before running the quickstart app, you need to: 1. If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification. 2. Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app). 3. Click the app you have just created, go to Develop > Build > Cloud Functions, enable the Cloud Function by clicking Enable Now. 4. Download the agconnect-services.json file from AppGallery Connect and replace the JSON file of the quickstart app with it. ## Sample Code src\main\java\com\huawei\cloudfunction\demo\MainActivity.java ## License Cloud Function Demo is licensed under the [Apache License, version 2.0] (http://www.apache.org/licenses/LICENSE-2.0).