Utilities for creating mobile apps based on the Salesforce Mobile SDK for Android
You have arrived at the source repository for the Salesforce Mobile SDK for Android. Welcome! Starting with our 2.0 release, there are now two ways you can choose to work with the Mobile SDK:
After cloning the SalesforceMobileSDK-Android project from github, run the install script from the command line:
This pulls submodule dependencies from github.
(Windows users: run
cscript install.vbs from the command line instead.)
cleanResyncGhostsmethod for removing ghost records, that is, records that don't match sync criteria or have been deleted from the server.
Instant Runfeature on
Android Studiois now supported.
Other Technical Improvements
Check http://developer.force.com/mobilesdk for additional articles and tutorials.
The Salesforce Mobile SDK provides essential libraries for quickly building native mobile apps that seamlessly integrate with the Salesforce cloud architecture. Out of the box, we provide an implementation of OAuth2, abstracting away the complexity of securely storing refresh tokens or fetching a new session ID when a session expires. The SDK also provides Java wrappers for the Salesforce REST API, making it easy to retrieve, store, and manipulate data.
The Salesforce Mobile SDK provides PIN-based OAuth token encryption for Android devices that don't provide full storage encryption functionality. The SDK implementation is NOT designed to provide complete security. It's simply offered as an option for temporarily protecting your app from eavesdroppers. Please use caution in your production deployment with sensitive data. We strongly recommend deploying production apps on the latest generation of Android devices with build-in device encryption.
The following steps will help you get started with your development environment, whether you choose to develop native apps or hybrid apps. See the
README files in the
hybrid/ folders for additional notes pertaining to development in those environments.
To pull down the SDK from github, create a new directory and git clone the salesforce SDK repo.
git clone https://github.com/forcedotcom/SalesforceMobileSDK-Android.git
If you would like to make suggestions, have questions, or encounter any issues, we'd love to hear from you. Post any feedback you have on our Google+ Community.