This repository contains Android sample code demonstrating the usage of AppFunctions to provide application functionality to system services and agents.
The ChatApp sample showcases how a communication app can provide its core features to the Android intelligence system. It is a functional chat application built with Jetpack Compose and Hilt.
- Location: ChatApp
- Features: Sending messages, searching contacts, and initiating calls via AppFunctions.
Follow these steps to explore and run the samples:
- Prerequisites:
- Android Studio.
- Android SDK 36+.
- A device or emulator running Android 16 (API 36) or higher.
- Clone the Repository:
git clone https://github.com/android/appfunctions.git
- Open in Android Studio:
- Open Android Studio and select Open.
- Navigate to the specific sample directory (e.g.,
ChatAppand click OK.
- Sync and Build: Wait for the Gradle sync to complete and build the project (Build > Make Project).
- Run: Click Run > Run 'app' to deploy the sample to your device.
We'd love to accept your patches and contributions!
- Contributor License Agreement (CLA): All contributors must sign the Google CLA.
- Code Style: We use Spotless to maintain consistent formatting. Run
./gradlew spotlessApplybefore committing. - Testing: Ensure all new functionality is covered by unit or instrumentation tests.
- Reviews: All submissions are reviewed via GitHub Pull Requests.
See CONTRIBUTING.md for more detailed information.
- AppFunctions Developer Guide: Comprehensive overview of the AppFunctions API and how to integrate it into your own apps.
- AppFunctions Skills: Specialized skills unlocking AI driven AppFunction development.
License: Apache 2.0. See LICENSE for details.