Setting Up Sample Projects in Android Studio
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:
-
Windows:
-
-
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....
-
- 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
.