# agc-applinking-codelab-java **Repository Path**: appgallery_connect/agc-applinking-codelab-java ## Basic Information - **Project Name**: agc-applinking-codelab-java - **Description**: App Linking allows you to create cross-platform links that can work as defined regardless of whether your app has been installed by a user. A link created in App Linking can be distributed through multiple channels to users. When a user taps the link, the user will be redirected to the specified in-app content. In App Linking, you can create both long and short links. - **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 # AppLinking Demo ## Introduction The AppLinking service allows AppLinking. AppLinking are links that work across platforms even on devices where your app is not installed. You can use AppLinking to direct users to promotional information or native app content that they can share with others. You can create AppLinking and send them to users, or users can share AppLinking dynamically generated in your app. Anyone who receives an AppLinking can tap it to access the linked content. ## Preparation Before using the demo app, prepare your Android development environment. ### Register as a developer. Register a [HUAWEI account](https://developer.huawei.com/consumer/en/). ### Create an app. Create an app and set Package type to APK (Android app).Then enable AppLinking and adding a URL Prefix by referring the chapter [Creating a Link in AppGallery Connect](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/). ### Build To build this demo, please first import the demo in the Android Studio (3.x+). Then download the file "agconnect-services.json" of the app on AGC, and add the file to the app root directory(\app) of the demo. ## Environment Requirements Android Studio 3.0 or later. ## Sample Code Main entry of the app, which processes received links. Sample code: src\main\java\com\huawei\applinkingdemo\MainActivity.java ## License AppLinking demo is licensed under the [Apache License, version 2.0] (http://www.apache.org/licenses/LICENSE-2.0).