Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Android Sample Apps
Native
Find these samples in the NativeSampleApps directory of the SalesforceMobileSDK-Android/native repo.
- MobileSyncExplorer demonstrates the power of the native Mobile Sync library on Android. It resides in Mobile SDK for Android under native/NativeSampleApps/MobileSyncExplorer.
- RestExplorer demonstrates the OAuth and REST API functions of Mobile SDK. It’s also useful for investigating REST API actions from a tablet.
Hybrid
Find these samples in the HybridSampleApps directory of the SalesforceMobileSDK-Android/hybrid repo.
- AccountEditor: Demonstrates how to synchronize offline data using the mobilesync.js library.
- MobileSyncExplorerHybrid: Demonstrates how to synchronize offline data using the Mobile Sync plugin.
- NoteSync: Demonstrates how to use non-REST APIs to retrieve Salesforce Notes.
Template Apps
You can use template apps with forcedroid create or forcedroid createwithtemplate to spawn Mobile SDK “starter” apps. Find these samples in the github.com/forcedotcom/SalesforceMobileSDK-Templates repo.
- Used by forcedroid create
-
- AndroidNativeKotlinTemplate: Standard Android native template, written in Kotlin. Default app type for the forcedroid create command. When forcedroid create prompts for app type, press Return or enter native_kotlin.
- AndroidNativeTemplate: Standard Android native template, written in Java. When forcedroid create prompts for app type, enter native.
- For use with forcedroid createwithtemplate
-
- AndroidIDPTemplate: Demonstrates how to set up an identity provider in an Android app. When forcedroid createwithtemplate prompts for the repo URI, enter AndroidIDPTemplate.
- MobileSyncExplorerKotlinTemplate: Provides a comprehensive example of Mobile Sync usage. When forcedroid createwithtemplate prompts for the repo URI, enter MobileSyncExplorerKotlinTemplate.