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.
- 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.
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.
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. Whenforcedroid create
prompts for app type, pressReturn
or enternative_kotlin
. - AndroidNativeTemplate: Standard Android native template, written in Java. When
forcedroid create
prompts 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 createwithtemplate
prompts for the repo URI, enterAndroidIDPTemplate
. - MobileSyncExplorerKotlinTemplate: Provides a comprehensive example of Mobile Sync usage. When
forcedroid createwithtemplate
prompts for the repo URI, enterMobileSyncExplorerKotlinTemplate
.
- AndroidIDPTemplate: Demonstrates how to set up an identity provider in an Android app. When