Android Sample Apps
Use native, hybrid, and template sample apps to speed up development.
Find these samples in the NativeSampleApps directory of the SalesforceMobileSDK-Android/native repo.
- RestExplorer demonstrates the OAuth and REST API functions of Mobile SDK. It’s also useful for investigating REST API actions from a tablet.
Find these samples in the HybridSampleApps directory of the SalesforceMobileSDK-Android/hybrid repo.
- AccountEditor: Demonstrates how to synchronize offline data using the
mobilesync.jslibrary. - MobileSyncExplorerHybrid: Demonstrates how to synchronize offline data using the Mobile Sync plugin.
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 createcommand. Whenforcedroid createprompts for app type, pressReturnor enternative_kotlin. - AndroidNativeTemplate: Standard Android native template, written in Java. When
forcedroid createprompts for app type, enternative.
- AndroidNativeKotlinTemplate: Standard Android native template, written in Kotlin. Default app type for the
- For use with forcedroid createwithtemplate
- AndroidIDPTemplate: Demonstrates how to set up an identity provider in an Android app. When
forcedroid createwithtemplateprompts for the repo URI, enterAndroidIDPTemplate. - MobileSyncExplorerKotlinTemplate: Provides a comprehensive example of Mobile Sync usage. When
forcedroid createwithtemplateprompts for the repo URI, enterMobileSyncExplorerKotlinTemplate. - AndroidNativeLoginTemplate: Demonstrates how to set up native login. When
forcedroid createwithtemplateprompts for the repo URI, enterAndroidNativeLoginTemplate.
- AndroidIDPTemplate: Demonstrates how to set up an identity provider in an Android app. When