Overview
Before You Begin
iOS Quick Start
Android Quick Start
Requirements
Install the SDK
Integrate Agentforce SDK
Use Full UI
Build a Headless Experience
Branding and Theming
Release Notes
MCP Solutions
Agentforce Vibes
This guide outlines the system requirements and development environment setup needed to use the Agentforce Mobile SDK for Android.
To develop using the Agentforce SDK, you'll need:
Several features of the SDK require user permissions.
Update your AndroidManifest.xml with the following perms and providers.
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" /><provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"
tools:replace="android:resource" />
</provider>
<provider
android:name="com.salesforce.android.agentforcesdkimpl.utils.AgentforcePDFFileProvider"
android:authorities="${applicationId}.pdffileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/pdf_file_paths" />
</provider>Also, add file paths to res/xml.
@xml/file_paths
<?xml version="1.0" encoding="utf-8"?>
<paths>
<cache-path name="cache" path="." />
</paths>@xml/pdf_file_paths
<?xml version="1.0" encoding="utf-8"?>
<paths>
<cache-path
name="cache"
path="." />
<external-cache-path
name="external_cache"
path="." />
<files-path
name="files"
path="." />
</paths>android {
compileSdk 35
defaultConfig {
minSdk 29
targetSdk 34
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.8"
}
}