Setting Up Sample Projects in
The SalesforceMobileSDK-Android GitHub repository contains sample apps you can build and run.
- If you haven’t already done so, clone the
SalesforceMobileSDK-Android GitHub repository.
-
Mac:
1git clone https://github.com/forcedotcom/SalesforceMobileSDK-Android.git 2./install.sh -
Windows:
1git clone https://github.com/forcedotcom/SalesforceMobileSDK-Android.git 2cscript install.vbs
-
Mac:
-
Open the project in Android Studio.
-
From the Welcome screen, click Import Project (Eclipse ADT, Gradle, etc.).
OR
-
From the File menu, click .
-
- Browse to <path_to_SalesforceMobileSDK-Android>/native/NativeSampleApps/ or <path_to_SalesforceMobileSDK-Android>/hybrid/HybridSampleApps/
- Select one of the listed sample apps and click OK..
- When the project finishes building, select the sample project in the Select Run/Debug Configurations drop-down menu.
- Press SHIFT-F10.