Setting Up Sample Projects in

The SalesforceMobileSDK-Android GitHub repository contains sample apps you can build and run.
  1. 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
  2. Open the project in Android Studio.
    • From the Welcome screen, click Import Project (Eclipse ADT, Gradle, etc.).

      OR

    • From the File menu, click File | New | Import Project....

  3. Browse to <path_to_SalesforceMobileSDK-Android>/native/NativeSampleApps/ or <path_to_SalesforceMobileSDK-Android>/hybrid/HybridSampleApps/
  4. Select one of the listed sample apps and click OK..
  5. When the project finishes building, select the sample project in the Select Run/Debug Configurations drop-down menu.
  6. Press SHIFT-F10.